summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Stoyanov <30537612+mkstoyanov@users.noreply.github.com>2021-09-16 15:26:07 -0400
committerGitHub <noreply@github.com>2021-09-16 13:26:07 -0600
commite027cecff26f44a358544e30e3a4fd98b85a9233 (patch)
tree29c2c2fc34fac634d9ff3477ee293fb3f13ff0b3
parentbb29c5d6744a227c6169aafa2a79d36a51de85b6 (diff)
downloadspack-e027cecff26f44a358544e30e3a4fd98b85a9233.tar.gz
spack-e027cecff26f44a358544e30e3a4fd98b85a9233.tar.bz2
spack-e027cecff26f44a358544e30e3a4fd98b85a9233.tar.xz
spack-e027cecff26f44a358544e30e3a4fd98b85a9233.zip
workaround a cmake/rocm bug in heffte (#25948)
-rw-r--r--var/spack/repos/builtin/packages/heffte/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py
index a253a6cd23..85eb8a6ced 100644
--- a/var/spack/repos/builtin/packages/heffte/package.py
+++ b/var/spack/repos/builtin/packages/heffte/package.py
@@ -90,6 +90,10 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage):
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')