@@ -32,7 +32,7 @@ if ($compiler eq "") {
32
32
" xlf95" , " xlf90" , " xlf" ,
33
33
" ppuf77" , " ppuf95" , " ppuf90" , " ppuxlf" ,
34
34
" pathf90" , " pathf95" ,
35
- " pgf95" , " pgf90" , " pgf77" ,
35
+ " pgf95" , " pgf90" , " pgf77" , " pgfortran " , " nvfortran " ,
36
36
" flang" , " egfortran" ,
37
37
" ifort" );
38
38
@@ -64,7 +64,6 @@ if ($compiler eq "") {
64
64
if (!$? ) {
65
65
66
66
$data = ` $compiler -O2 -S ftest.f > /dev/null 2>&1 && cat ftest.s && rm -f ftest.s` ;
67
-
68
67
if ($data =~ / zhoge_/ ) {
69
68
$bu = " _" ;
70
69
}
@@ -87,7 +86,7 @@ if ($compiler eq "") {
87
86
if ($compiler =~ / flang/ ) {
88
87
$vendor = FLANG;
89
88
$openmp = " -fopenmp" ;
90
- } elsif ($compiler =~ / pgf/ ) {
89
+ } elsif ($compiler =~ / pgf/ || $compiler =~ / nvf / ) {
91
90
$vendor = PGI;
92
91
$openmp = " -mp" ;
93
92
} else {
@@ -123,7 +122,7 @@ if ($compiler eq "") {
123
122
$openmp = " -mp" ;
124
123
}
125
124
126
- if ($data =~ / PGF/ ) {
125
+ if ($data =~ / PGF/ || $data =~ / NVF / ) {
127
126
$vendor = PGI;
128
127
$openmp = " -mp" ;
129
128
}
@@ -177,7 +176,7 @@ if ($compiler eq "") {
177
176
$openmp = " -mp" ;
178
177
}
179
178
180
- if ($compiler =~ / pgf/ ) {
179
+ if ($compiler =~ / pgf/ || $compiler =~ / nvf / ) {
181
180
$vendor = PGI;
182
181
$bu = " _" ;
183
182
$openmp = " -mp" ;
@@ -330,7 +329,7 @@ if ($link ne "") {
330
329
$flags =~ s /\@ / \, / g ;
331
330
$linker_L .= " -Wl," . $flags . " " ;
332
331
}
333
- if ($flags =~ / -lgomp/ && $ENV { " CC " } =~ / clang/ ) {
332
+ if ($flags =~ / -lgomp/ && $CC =~ / clang/ ) {
334
333
$flags = " -lomp" ;
335
334
}
336
335
0 commit comments