workaround a cmake/rocm bug in heffte (#25948)

This commit is contained in:
Miroslav Stoyanov
2021-09-16 15:26:07 -04:00
committed by GitHub
parent bb29c5d674
commit e027cecff2

View File

@@ -90,6 +90,10 @@ def cmake_args(self):
if 'none' not in rocm_arch:
args.append('-DCMAKE_CXX_FLAGS={0}'.format(self.hip_flags(rocm_arch)))
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
if self.spec.satisfies('^cmake@3.21:'):
args.append(self.define('__skip_rocmclang', 'ON'))
return args
@run_after('install')