diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-01-19 05:49:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 22:49:59 -0600 |
commit | 1dab7895048d28677fd9ddb92743db0d736169c8 (patch) | |
tree | eb795b340fc57476df8487804a4471d4d0226910 | |
parent | 85838e98fb1b4858b99604577ad747695b1686a8 (diff) | |
download | spack-1dab7895048d28677fd9ddb92743db0d736169c8.tar.gz spack-1dab7895048d28677fd9ddb92743db0d736169c8.tar.bz2 spack-1dab7895048d28677fd9ddb92743db0d736169c8.tar.xz spack-1dab7895048d28677fd9ddb92743db0d736169c8.zip |
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>
-rw-r--r-- | var/spack/repos/builtin/packages/hipblas/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hipblas/package.py b/var/spack/repos/builtin/packages/hipblas/package.py index af4fa0f364..3b93406ae9 100644 --- a/var/spack/repos/builtin/packages/hipblas/package.py +++ b/var/spack/repos/builtin/packages/hipblas/package.py @@ -35,6 +35,15 @@ class Hipblas(CMakePackage): '-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): |