oneAPI compiler: update openmp flag (#23771)

This commit is contained in:
Frank Willmore 2021-06-17 19:26:46 -05:00 committed by GitHub
parent e7ac422982
commit 2c1e9cc7b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ def opt_flags(self):
@property
def openmp_flag(self):
return "-qopenmp"
return "-fiopenmp"
# There may be some additional options here for offload, e.g. :
# -fopenmp-simd Emit OpenMP code only for SIMD-based constructs.
# -fopenmp-targets=<value>

View file

@ -550,7 +550,7 @@ def test_intel_flags():
def test_oneapi_flags():
supported_flag_test("openmp_flag", "-qopenmp", "oneapi@2020.8.0.0827")
supported_flag_test("openmp_flag", "-fiopenmp", "oneapi@2020.8.0.0827")
supported_flag_test("cxx11_flag", "-std=c++11", "oneapi@2020.8.0.0827")
supported_flag_test("cxx14_flag", "-std=c++14", "oneapi@2020.8.0.0827")
supported_flag_test("c99_flag", "-std=c99", "oneapi@2020.8.0.0827")