Skip to content

Commit 1941362

Browse files
authored
Add Intel ifx compiler
1 parent f56e4b6 commit 1941362

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

f_check

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -z "$compiler" ]; then
4545
pathf90 pathf95
4646
pgf95 pgf90 pgf77 pgfortran nvfortran
4747
flang egfortran
48-
ifort nagfor"
48+
ifort nagfor ifx"
4949

5050
for list in $lists; do
5151
for p in $path; do
@@ -98,6 +98,10 @@ else
9898
vendor=FLANG
9999
openmp='-fopenmp'
100100
;;
101+
*ifx*)
102+
vendor=INTEL
103+
openmp='-fopenmp'
104+
;;
101105
*pgf*|*nvf*)
102106
vendor=PGI
103107
openmp='-mp'
@@ -171,7 +175,7 @@ else
171175
bu=_
172176
openmp='-fopenmp'
173177
;;
174-
*ifort*)
178+
*ifort*|*ifx*)
175179
vendor=INTEL
176180
bu=_
177181
openmp='-fopenmp'

f_check.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"pathf90", "pathf95",
3535
"pgf95", "pgf90", "pgf77", "pgfortran", "nvfortran",
3636
"flang", "egfortran",
37-
"ifort", "nagfor");
37+
"ifort", "nagfor", "ifx");
3838

3939
OUTER:
4040
foreach $lists (@lists) {
@@ -90,6 +90,9 @@
9090
if ($compiler =~ /flang/) {
9191
$vendor = FLANG;
9292
$openmp = "-fopenmp";
93+
} elsif ($compiler =~ /ifx/) {
94+
$vendor = INTEL;
95+
$openmp = "-fopenmp";
9396
} elsif ($compiler =~ /pgf/ || $compiler =~ /nvf/) {
9497
$vendor = PGI;
9598
$openmp = "-mp";
@@ -176,7 +179,7 @@
176179
$openmp = "-fopenmp";
177180
}
178181

179-
if ($compiler =~ /ifort/) {
182+
if ($compiler =~ /ifort/ || $compiler =~ /ifx/) {
180183
$vendor = INTEL;
181184
$bu = "_";
182185
$openmp = "-fopenmp";

0 commit comments

Comments
 (0)