Don't use CUDA for hipblas (#20935)

* Don't use CUDA for hipblas

* old versions use TRY_CUDA

* Update var/spack/repos/builtin/packages/hipblas/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Harmen Stoppels 2021-01-19 05:49:59 +01:00 committed by GitHub
parent 85838e98fb
commit 1dab789504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,15 @@ def cmake_args(self):
'-DBUILD_CLIENTS_SAMPLES=OFF', '-DBUILD_CLIENTS_SAMPLES=OFF',
'-DBUILD_CLIENTS_TESTS=OFF' '-DBUILD_CLIENTS_TESTS=OFF'
] ]
# hipblas actually prefers CUDA over AMD GPUs when you have it
# installed...
if self.spec.satisfies('@:3.9.0'):
args.append('-DTRY_CUDA=OFF')
else:
args.append('-DUSE_CUDA=OFF')
return args return args
def setup_build_environment(self, env): def setup_build_environment(self, env):