Skip to content

Commit d2b9389

Browse files
authored
Fixes for ifort 2018
1. the already deprecated -openmp option was removed in 2018, switch to -fopenmp 2. add leading blank in search for "zho_ge__" symbol to work around misleading tags in the 2018 assembly Expected to fix #1548
1 parent 88e224f commit d2b9389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

f_check

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if ($compiler eq "") {
9797

9898
if ($data =~ /Intel/) {
9999
$vendor = INTEL;
100-
$openmp = "-openmp";
100+
$openmp = "-fopenmp";
101101
}
102102

103103
if ($data =~ /Sun Fortran/) {
@@ -127,7 +127,7 @@ if ($compiler eq "") {
127127

128128
# for embeded underscore name, e.g. zho_ge, it may append 2 underscores.
129129
$data = `$compiler -O2 -S ftest3.f > /dev/null 2>&1 && cat ftest3.s && rm -f ftest3.s`;
130-
if ($data =~ /zho_ge__/) {
130+
if ($data =~ / zho_ge__/) {
131131
$need2bu = 1;
132132
}
133133
}
@@ -155,7 +155,7 @@ if ($compiler eq "") {
155155
if ($compiler =~ /ifort/) {
156156
$vendor = INTEL;
157157
$bu = "_";
158-
$openmp = "-openmp";
158+
$openmp = "-fopenmp";
159159
}
160160

161161
if ($compiler =~ /pathf/) {

0 commit comments

Comments
 (0)