summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsameershende <sameershende@users.noreply.github.com>2020-11-17 19:09:24 -0800
committerGitHub <noreply@github.com>2020-11-17 19:09:24 -0800
commitb81bbfb6e9691036fc284f034e749a3b9361bf5a (patch)
tree90fcc6934d17d9c859b2649129f42621dd0201a4
parent89181f253b0d81f94a447815be80f88adb9578e0 (diff)
downloadspack-b81bbfb6e9691036fc284f034e749a3b9361bf5a.tar.gz
spack-b81bbfb6e9691036fc284f034e749a3b9361bf5a.tar.bz2
spack-b81bbfb6e9691036fc284f034e749a3b9361bf5a.tar.xz
spack-b81bbfb6e9691036fc284f034e749a3b9361bf5a.zip
Added -level_zero -rocm -opencl flags and sha256 for TAU v2.30. (#19962)
* Added -level_zero -rocm -opencl flags and sha256 for TAU v2.30. * Removed the depends_on clause for OpenCL and added a variant for OneAPI level_zero. * remove depends_on rocm * remove depends_on rocprofiler Co-authored-by: eugeneswalker <eugenesunsetwalker@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/tau/package.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py
index dff5ce762c..331f88861c 100644
--- a/var/spack/repos/builtin/packages/tau/package.py
+++ b/var/spack/repos/builtin/packages/tau/package.py
@@ -20,10 +20,11 @@ class Tau(Package):
maintainers = ['wspear', 'eugeneswalker', 'khuck', 'sameershende']
homepage = "http://www.cs.uoregon.edu/research/tau"
- url = "https://www.cs.uoregon.edu/research/tau/tau_releases/tau-2.28.1.tar.gz"
+ url = "https://www.cs.uoregon.edu/research/tau/tau_releases/tau-2.30.tar.gz"
git = "https://github.com/UO-OACISS/tau2"
version('master', branch='master')
+ version('2.30', sha256='e581c33e21488d69839a00d97fd4451ea579f47249b2750d5c36bea773041eaf')
version('2.29.1', sha256='4195a0a236bba510ab50a93e13c7f00d9472e8bc46c91de3f0696112a34e34e2')
version('2.29', sha256='146be769a23c869a7935e8fa5ba79f40ba36b9057a96dda3be6730fc9ca86086')
version('2.28.2', sha256='64e129a482056755012b91dae2fb4f728dbf3adbab53d49187eca952891c5457')
@@ -67,6 +68,10 @@ class Tau(Package):
variant('shmem', default=False, description='Activates SHMEM support')
variant('gasnet', default=False, description='Activates GASNET support')
variant('cuda', default=False, description='Activates CUDA support')
+ 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('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')
variant('adios2', default=False, description='Activates ADIOS2 output support')
@@ -235,6 +240,18 @@ class Tau(Package):
if '+cuda' in spec:
options.append("-cuda=%s" % spec['cuda'].prefix)
+ if '+level_zero' in spec:
+ options.append("-level_zero")
+
+ if '+opencl' in spec:
+ options.append("-opencl")
+
+ if '+rocm' in spec:
+ options.append("-rocm")
+
+ if '+rocprofiler' in spec:
+ options.append("-rocprofiler=%s" % spec['rocprofiler'].prefix)
+
if '+adios2' in spec:
options.append("-adios=%s" % spec['adios2'].prefix)