diff options
author | luker <luke.roskop@hpe.com> | 2021-09-24 17:29:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 16:29:04 -0600 |
commit | ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676 (patch) | |
tree | e16037bc5a25a347d5ac39040ce0603c35007007 | |
parent | cdcecda9d065acc9df60e1e53cf110b90292d031 (diff) | |
download | spack-ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676.tar.gz spack-ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676.tar.bz2 spack-ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676.tar.xz spack-ab90cd8fc46415b45e1cf86d8b0ba7f24e0ca676.zip |
Tau rocm fix (#26134)
* update the Tau package to use the correct ROCm dependencies and prefixes
1st:
When the rocm variant is selected, tau defaults to look for rocm in /opt/rocm
which is not guarenteed to be the correct location -- this has been fixed
to provide the prefix for hsa-rocr-dev (which is now a dependency when +rocm is
selected).
2nd:
the rocprofiler dependency package was not specified correctly, it should
be called rocprofiler-dev, also rocprofiler-dev is a dependency when
+rocprofiler is selected.
added roctracer support
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index b9da99973b..a7987a36c6 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -74,6 +74,7 @@ class Tau(Package): variant('rocm', default=False, description='Activates ROCm support') variant('level_zero', default=False, description='Activates Intel OneAPI Level Zero support') variant('rocprofiler', default=False, description='Activates ROCm rocprofiler support') + variant('roctracer', default=False, description='Activates ROCm roctracer support') variant('opencl', default=False, description='Activates OpenCL support') variant('fortran', default=darwin_default, description='Activates Fortran support') variant('io', default=True, description='Activates POSIX I/O support') @@ -106,6 +107,9 @@ class Tau(Package): depends_on('adios2', when='+adios2') depends_on('sqlite', when='+sqlite') depends_on('hwloc') + depends_on('rocprofiler-dev', when='+rocprofiler') + depends_on('roctracer-dev', when='+roctracer') + depends_on('hsa-rocr-dev', when='+rocm') # Elf only required from 2.28.1 on conflicts('+elf', when='@:2.28.0') @@ -258,10 +262,13 @@ class Tau(Package): options.append("-opencl") if '+rocm' in spec: - options.append("-rocm") + options.append("-rocm=%s" % spec['hsa-rocr-dev'].prefix) if '+rocprofiler' in spec: - options.append("-rocprofiler=%s" % spec['rocprofiler'].prefix) + options.append("-rocprofiler=%s" % spec['rocprofiler-dev'].prefix) + + if '+roctracer' in spec: + options.append("-roctracer=%s" % spec['roctracer-dev'].prefix) if '+adios2' in spec: options.append("-adios=%s" % spec['adios2'].prefix) |