diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/aluminum/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/aluminum/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/aluminum/package.py b/var/spack/repos/builtin/packages/aluminum/package.py index 894c8bca38..1fb57efac9 100644 --- a/var/spack/repos/builtin/packages/aluminum/package.py +++ b/var/spack/repos/builtin/packages/aluminum/package.py @@ -81,6 +81,10 @@ class Aluminum(CMakePackage, CudaPackage, ROCmPackage): arch_str = ";".join(archs) args.append('-DCMAKE_CUDA_ARCHITECTURES=%s' % arch_str) + if (spec.satisfies('%cce') and + spec.satisfies('^cuda+allow-unsupported-compilers')): + args.append('-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler') + if spec.satisfies('@0.5:'): args.extend([ '-DALUMINUM_ENABLE_HOST_TRANSFER:BOOL=%s' % ('+ht' in spec), |