summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMiroslav Stoyanov <30537612+mkstoyanov@users.noreply.github.com>2022-11-03 14:28:08 -0400
committerGitHub <noreply@github.com>2022-11-03 11:28:08 -0700
commit08bee718a26c96ceffd228e4917358570239ede1 (patch)
treebc01a057c9edfe67a1368f3a4a0698932fdb37ec /var
parentda020d1bb8bcb56ce66002290c5296807856e1b4 (diff)
downloadspack-08bee718a26c96ceffd228e4917358570239ede1.tar.gz
spack-08bee718a26c96ceffd228e4917358570239ede1.tar.bz2
spack-08bee718a26c96ceffd228e4917358570239ede1.tar.xz
spack-08bee718a26c96ceffd228e4917358570239ede1.zip
new cmake requirement (#33679)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/heffte/package.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py
index a5695e239e..2c9424ca34 100644
--- a/var/spack/repos/builtin/packages/heffte/package.py
+++ b/var/spack/repos/builtin/packages/heffte/package.py
@@ -35,6 +35,8 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage):
patch("fortran200.patch", when="@2.0.0")
depends_on("cmake@3.10:", type=("build", "run"))
+ depends_on("cmake@3.19:", when="@develop", type=("build", "run"))
+ depends_on("cmake@3.21:", when="@develop+rocm", type=("build", "run"))
variant("shared", default=True, description="Builds with shared libraries")
variant("fftw", default=False, description="Builds with support for FFTW backend")
@@ -63,8 +65,10 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage):
depends_on("fftw@3.3.8:", when="+fftw", type=("build", "run"))
depends_on("intel-mkl@2018.0.128:", when="+mkl", type=("build", "run"))
depends_on("cuda@8.0:", when="+cuda", type=("build", "run"))
- depends_on("hip@3.8.0:", when="+rocm")
- depends_on("rocfft@3.8.0:", when="+rocm")
+ depends_on("hip@3.8.0:", when="+rocm", type=("build", "run"))
+ depends_on("rocfft@3.8.0:", when="+rocm", type=("build", "run"))
+ depends_on("hip@5.2.3:", when="@develop+rocm", type=("build", "run"))
+ depends_on("rocfft@5.2.3:", when="@develop+rocm", type=("build", "run"))
depends_on("magma@2.5.3:", when="+cuda+magma", type=("build", "run"))
depends_on("magma+rocm@2.6.1:", when="+magma+rocm @2.1:", type=("build", "run"))
depends_on("hipblas@3.8:", when="+magma+rocm", type=("build", "run"))
@@ -142,6 +146,9 @@ class Heffte(CMakePackage, CudaPackage, ROCmPackage):
]
if "+rocm" in self.spec:
options.append(
+ "-Dhip_DIR=" + join_path(self.spec["hip"].prefix, "lib", "cmake", "hip")
+ )
+ options.append(
"-DAMDDeviceLibs_DIR="
+ join_path(self.spec["llvm-amdgpu"].prefix, "lib", "cmake", "AMDDeviceLibs")
)