oneAPI compiler: update openmp flag (#23771)
This commit is contained in:
parent
e7ac422982
commit
2c1e9cc7b7
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue