File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ if (${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
65
65
endif ()
66
66
endif ()
67
67
68
+ if (${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC" )
69
+ if (POWER)
70
+ set (CCOMMON_OPT "${CCOMMON_OPT} -tp pwr8" )
71
+ else ()
72
+ set (CCOMMON_OPT "${CCOMMON_OPT} -tp px" )
73
+ endif ()
74
+ endif ()
75
+
68
76
if (${CMAKE_C_COMPILER_ID} STREQUAL "PATHSCALE" )
69
77
if (BINARY64)
70
78
set (CCOMMON_OPT "${CCOMMON_OPT} -m64" )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ if (${F_COMPILER} STREQUAL "IBM")
121
121
endif ()
122
122
endif ()
123
123
124
- if (${F_COMPILER} STREQUAL "PGI" )
124
+ if (${F_COMPILER} STREQUAL "PGI" OR ${F_COMPILER} STREQUAL "PGF95" )
125
125
set (CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_PGI" )
126
126
set (COMMON_PROF "${COMMON_PROF} -DPGICOMPILER" )
127
127
if (BINARY64)
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (DEFINED TARGET)
55
55
endif ()
56
56
57
57
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
58
- if (X86_64 AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "PGI" )
58
+ if (X86_64 AND NOT ( ${CMAKE_C_COMPILER_ID} STREQUAL "PGI" OR ${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC" ) )
59
59
set (GETARCH_FLAGS "${GETARCH_FLAGS} -march=native" )
60
60
endif ()
61
61
You can’t perform that action at this time.
0 commit comments