Fix for problem with cmake@3.21 (#25989)

This commit is contained in:
G-Ragghianti
2021-09-16 13:52:59 -04:00
committed by GitHub
parent cf81046bb1
commit c4e26ac7c8

View File

@@ -128,6 +128,9 @@ def cmake_args(self):
if '+rocm' in spec:
options.extend(['-DMAGMA_ENABLE_HIP=ON'])
options.extend(['-DCMAKE_CXX_COMPILER=hipcc'])
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
if spec.satisfies('^cmake@3.21:'):
options.extend(['-D__skip_rocmclang=ON'])
else:
options.extend(['-DMAGMA_ENABLE_CUDA=ON'])