Skip to content

Commit

Permalink
Move to a more specific cpu name
Browse files Browse the repository at this point in the history
  • Loading branch information
diehlpk committed Feb 5, 2024
1 parent b7d748a commit 6220085
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/KokkosCore_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#cmakedefine KOKKOS_ARCH_POWER7
#cmakedefine KOKKOS_ARCH_POWER8
#cmakedefine KOKKOS_ARCH_POWER9
#cmakedefine KOKKOS_ARCH_RISCV_MILKV
#cmakedefine KOKKOS_ARCH_RISCV_SG2042V
#cmakedefine KOKKOS_ARCH_INTEL_GEN
#cmakedefine KOKKOS_ARCH_INTEL_DG1
#cmakedefine KOKKOS_ARCH_INTEL_GEN9
Expand Down
4 changes: 2 additions & 2 deletions cmake/kokkos_arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ DECLARE_AND_CHECK_HOST_ARCH(POWER9 "IBM POWER9 CPUs")
DECLARE_AND_CHECK_HOST_ARCH(ZEN "AMD Zen architecture")
DECLARE_AND_CHECK_HOST_ARCH(ZEN2 "AMD Zen2 architecture")
DECLARE_AND_CHECK_HOST_ARCH(ZEN3 "AMD Zen3 architecture")
DECLARE_AND_CHECK_HOST_ARCH(RISCV_MILKV "Milk-V (RISC-V) CPUs")
DECLARE_AND_CHECK_HOST_ARCH(RISCV_SG2042 "SG2042 (RISC-V) CPUs")

IF(Kokkos_ENABLE_CUDA OR Kokkos_ENABLE_OPENMPTARGET OR Kokkos_ENABLE_OPENACC OR Kokkos_ENABLE_SYCL)
SET(KOKKOS_SHOW_CUDA_ARCHS ON)
Expand Down Expand Up @@ -376,7 +376,7 @@ IF (KOKKOS_ARCH_HSW)
)
ENDIF()

IF (KOKKOS_ARCH_RISCV_MILKV)
IF (KOKKOS_ARCH_RISCV_SG2042)
IF(NOT (
(KOKKOS_CXX_COMPILER_ID STREQUAL GNU
AND KOKKOS_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12)
Expand Down
4 changes: 2 additions & 2 deletions core/src/impl/Kokkos_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ void pre_initialize_internal(const Kokkos::InitializationSettings& settings) {
#elif defined(KOKKOS_ARCH_AMD_ZEN3)
declare_configuration_metadata("architecture", "CPU architecture",
"AMD_ZEN3");
#elif defined(KOKKOS_ARCH_RISCV_MILKV)
#elif defined(KOKKOS_ARCH_RISCV_SG2042)
declare_configuration_metadata("architecture", "CPU architecture",
"Milk-V (RISC-V)")
"SG2042 (RISC-V)")
#else
declare_configuration_metadata("architecture", "CPU architecture", "none");
#endif
Expand Down

0 comments on commit 6220085

Please sign in to comment.