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:
parent
85838e98fb
commit
1dab789504
1 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,15 @@ def cmake_args(self):
|
|||
'-DBUILD_CLIENTS_SAMPLES=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
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
|
|
Loading…
Reference in a new issue