summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew Gaspar <agaspar@lanl.gov>2020-05-11 11:33:34 -0600
committerGitHub <noreply@github.com>2020-05-11 12:33:34 -0500
commit2c009a3226a6afc0dfa031722d30fff0dd0bd487 (patch)
treecc5322439937bee831b2e9500b18f3d60ac6b414 /var
parent20a4e5efe87218fc5a6c46bad3399387bc9d3964 (diff)
downloadspack-2c009a3226a6afc0dfa031722d30fff0dd0bd487.tar.gz
spack-2c009a3226a6afc0dfa031722d30fff0dd0bd487.tar.bz2
spack-2c009a3226a6afc0dfa031722d30fff0dd0bd487.tar.xz
spack-2c009a3226a6afc0dfa031722d30fff0dd0bd487.zip
Map the spack skylake arch to Kokkos BDW, rather than SKX (#16583)
SKX includes AVX-512 extensions that consumer Skylake processors do not have. Therefore, map Skylake to the prior arch to work on these systems. Skylake-X processors will still map as the skylake_avx512 spack arch and get the correct optimzations.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kokkos/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py
index fef37d2ac7..b5277e40a8 100644
--- a/var/spack/repos/builtin/packages/kokkos/package.py
+++ b/var/spack/repos/builtin/packages/kokkos/package.py
@@ -120,7 +120,12 @@ class Kokkos(CMakePackage, CudaPackage):
"core2": None,
"ivybridge": "SNB",
"broadwell": "BDW",
- "skylake": "SKX",
+ # @AndrewGaspar: Kokkos does not have an arch for plain-skylake - only
+ # for Skylake-X (i.e. Xeon). For now, I'm mapping this to Broadwell
+ # until Kokkos learns to optimize for SkyLake without the AVX-512
+ # extensions. SkyLake with AVX-512 will still be optimized using the
+ # separate `skylake_avx512` arch.
+ "skylake": "BDW",
"icelake": "SKX",
"skylake_avx512": "SKX",
}