diff options
Diffstat (limited to 'var')
-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) |