Add nvc++ support

This commit is contained in:
Morris Hafner
2024-08-30 12:34:48 +00:00
committed by Rasmus Munk Larsen
parent c59332d74a
commit 26e2c4f617
3 changed files with 15 additions and 10 deletions

View File

@@ -196,6 +196,13 @@
#define EIGEN_COMP_PGI 0
#endif
/// \internal EIGEN_COMP_NVHPC set to NVHPC version if the compiler is nvc++
#if defined(__NVCOMPILER)
#define EIGEN_COMP_NVHPC (__NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__)
#else
#define EIGEN_COMP_NVHPC 0
#endif
/// \internal EIGEN_COMP_ARM set to 1 if the compiler is ARM Compiler
#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
#define EIGEN_COMP_ARM 1