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.
This commit is contained in:
Andrew Gaspar 2020-05-11 11:33:34 -06:00 committed by GitHub
parent 20a4e5efe8
commit 2c009a3226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
}