@@ -102,14 +102,20 @@ AC_DEFUN([_OPAL_CHECK_COMPILER_VENDOR], [
102
102
opal_check_compiler_vendor_result= " unknown"
103
103
104
104
# GNU is probably the most common, so check that one as soon as
105
- # possible. Intel pretends to be GNU, so need to check Intel
106
- # before checking for GNU.
105
+ # possible. Intel and PGI18 pretends to be GNU, so need to check Intel
106
+ # and PGI before checking for GNU.
107
107
108
108
# Intel
109
109
AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
110
110
[OPAL_IF_IFELSE([defined(__INTEL_COMPILER) || defined(__ICC)],
111
111
[opal_check_compiler_vendor_result= " intel" ])])
112
112
113
+ # Portland Group
114
+ AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
115
+ [OPAL_IFDEF_IFELSE([__PGI],
116
+ [opal_check_compiler_vendor_result= " portland group" ])])
117
+
118
+
113
119
# Fujitsu
114
120
AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
115
121
[OPAL_IF_IFELSE([defined(__FUJITSU)],
@@ -243,11 +249,6 @@ AC_DEFUN([_OPAL_CHECK_COMPILER_VENDOR], [
243
249
[OPAL_IFDEF_IFELSE([__POCC__],
244
250
[opal_check_compiler_vendor_result= " pelles" ])])
245
251
246
- # Portland Group
247
- AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
248
- [OPAL_IFDEF_IFELSE([__PGI],
249
- [opal_check_compiler_vendor_result= " portland group" ])])
250
-
251
252
# SAS/C
252
253
AS_IF([test " $opal_check_compiler_vendor_result " = " unknown" ],
253
254
[OPAL_IF_IFELSE([defined(SASC) || defined(__SASC) || defined(__SASC__)],
0 commit comments