Skip to content

Commit

Permalink
Merge pull request #4377 from bartoldeman/intelcompilers-openmp
Browse files Browse the repository at this point in the history
Use `-qopenmp` instead of `-fiopenmp` for OpenMP in Intel compilers
  • Loading branch information
boegel authored Nov 8, 2023
2 parents 731649d + ee99d87 commit ea8433d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions easybuild/toolchains/compiler/intel_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ def set_variables(self):
self.options.options_map['loose'] = ['fp-model fast']
# fp-model fast=2 gives "warning: overriding '-ffp-model=fast=2' option with '-ffp-model=fast'"
self.options.options_map['veryloose'] = ['fp-model fast']
# recommended in porting guide
self.options.options_map['openmp'] = ['fiopenmp']
# recommended in porting guide: qopenmp, unlike fiopenmp, works for both classic and oneapi compilers
# https://www.intel.com/content/www/us/en/developer/articles/guide/porting-guide-for-ifort-to-ifx.html
self.options.options_map['openmp'] = ['qopenmp']

# -xSSE2 is not supported by Intel oneAPI compilers,
# so use -march=x86-64 -mtune=generic when using optarch=GENERIC
Expand Down
2 changes: 1 addition & 1 deletion test/framework/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2036,7 +2036,7 @@ def test_independence(self):
'CrayIntel': "-O2 -ftz -fp-speculation=safe -fp-model source -fopenmp -craype-verbose",
'GCC': "-O2 -ftree-vectorize -test -fno-math-errno -fopenmp",
'iccifort': "-O2 -test -ftz -fp-speculation=safe -fp-model source -fopenmp",
'intel-compilers': "-O2 -test -ftz -fp-speculation=safe -fp-model precise -fiopenmp",
'intel-compilers': "-O2 -test -ftz -fp-speculation=safe -fp-model precise -qopenmp",
}

toolchains = [
Expand Down

0 comments on commit ea8433d

Please sign in to comment.