summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2021-12-06 09:25:27 -0600
committerGitHub <noreply@github.com>2021-12-06 16:25:27 +0100
commita332c267804457be42bcf5519c18aba6971615f4 (patch)
tree42edd35c0633e9f945bd1e6bd8b2ef2e9fc83e1a /bin
parenta8a226b74844474b452693b064488bc209d4162f (diff)
downloadspack-a332c267804457be42bcf5519c18aba6971615f4.tar.gz
spack-a332c267804457be42bcf5519c18aba6971615f4.tar.bz2
spack-a332c267804457be42bcf5519c18aba6971615f4.tar.xz
spack-a332c267804457be42bcf5519c18aba6971615f4.zip
acts: use variants['cuda_arch'] only when +cuda (#27813)
Since #27185, the cuda_arch variant values are conditional on +cuda. This means that for -cuda specs, the installation fails with: ``` ==> acts: Executing phase: 'cmake' ==> Error: KeyError: 'cuda_arch' /home/wdconinc/git/spack/var/spack/repos/builtin/packages/acts/package.py:222, in cmake_args: 219 log_failure_threshold = spec.variants['log_failure_threshold'].value 220 args.append("-DACTS_LOG_FAILURE_THRESHOLD={0}".format(log_failure_threshold)) 221 >> 222 cuda_arch = spec.variants['cuda_arch'].value 223 if cuda_arch != 'none': 224 args.append('-DCUDA_FLAGS=-arch=sm_{0}'.format(cuda_arch[0])) 225 ```
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions