diff --git a/core/src/Kokkos_Macros.hpp b/core/src/Kokkos_Macros.hpp index 7e9e23b64f..4f5bda88ed 100644 --- a/core/src/Kokkos_Macros.hpp +++ b/core/src/Kokkos_Macros.hpp @@ -163,8 +163,8 @@ #endif #if defined(__NVCOMPILER) -#define KOKKOS_COMPILER_NVHPC \ - __NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__ * 10 + \ +#define KOKKOS_COMPILER_NVHPC \ + __NVCOMPILER_MAJOR__ * 10000 + __NVCOMPILER_MINOR__ * 100 + \ __NVCOMPILER_PATCHLEVEL__ #endif