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>
This commit is contained in:
sameershende 2020-11-17 19:09:24 -08:00 committed by GitHub
parent 89181f253b
commit b81bbfb6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def install(self, spec, prefix):
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)