diff options
author | Loris Ercole <30901257+lorisercole@users.noreply.github.com> | 2024-01-17 13:55:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 13:55:01 +0100 |
commit | 4ad62d8b099d1d4b0e5dc7392b1fdf94d3198083 (patch) | |
tree | eda304089c04a8adee38ed71964586d5c6aacdd8 /var | |
parent | 28675478ce7c8b3dc1d896829585493ce57cd420 (diff) | |
download | spack-4ad62d8b099d1d4b0e5dc7392b1fdf94d3198083.tar.gz spack-4ad62d8b099d1d4b0e5dc7392b1fdf94d3198083.tar.bz2 spack-4ad62d8b099d1d4b0e5dc7392b1fdf94d3198083.tar.xz spack-4ad62d8b099d1d4b0e5dc7392b1fdf94d3198083.zip |
cp2k: fix 'gpu_map' bug (#42009)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cp2k/package.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 529113d105..3b01b7dc02 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -330,18 +330,6 @@ class Cp2k(MakefilePackage, CudaPackage, CMakePackage, ROCmPackage): supported_cuda_arch_list = ("35", "37", "60", "70", "80") supported_rocm_arch_list = ("gfx906", "gfx908", "gfx90a", "gfx90a:xnack-", "gfx90a:xnack+") - gpu_map = { - "35": "K40", - "37": "K80", - "60": "P100", - "70": "V100", - "80": "A100", - "gfx906": "Mi50", - "gfx908": "Mi100", - "gfx90a": "Mi250", - "gfx90a:xnack-": "Mi250", - "gfx90a:xnack+": "Mi250", - } cuda_msg = "cp2k only supports cuda_arch {0}".format(supported_cuda_arch_list) rocm_msg = "cp2k only supports amdgpu_target {0}".format(supported_rocm_arch_list) @@ -687,6 +675,18 @@ class Cp2k(MakefilePackage, CudaPackage, CMakePackage, ROCmPackage): fcflags += ["-I{0}".format(sirius.prefix.include.sirius)] libs += list(sirius.libs) + gpu_map = { + "35": "K40", + "37": "K80", + "60": "P100", + "70": "V100", + "80": "A100", + "gfx906": "Mi50", + "gfx908": "Mi100", + "gfx90a": "Mi250", + "gfx90a:xnack-": "Mi250", + "gfx90a:xnack+": "Mi250", + } gpuver = "" if spec.satisfies("+cuda"): libs += [ |