diff options
author | Frank Willmore <frankwillmore@gmail.com> | 2021-06-17 19:26:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 17:26:46 -0700 |
commit | 2c1e9cc7b78ebaaf63e9c3d5b6fc63a6d5e243b7 (patch) | |
tree | 6fd95a69591beb36c652f1a2ca07538f95a53c09 /lib | |
parent | e7ac422982c70887a5039f994f77f79fc595eaa5 (diff) | |
download | spack-2c1e9cc7b78ebaaf63e9c3d5b6fc63a6d5e243b7.tar.gz spack-2c1e9cc7b78ebaaf63e9c3d5b6fc63a6d5e243b7.tar.bz2 spack-2c1e9cc7b78ebaaf63e9c3d5b6fc63a6d5e243b7.tar.xz spack-2c1e9cc7b78ebaaf63e9c3d5b6fc63a6d5e243b7.zip |
oneAPI compiler: update openmp flag (#23771)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compilers/oneapi.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/test/compilers/basics.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/oneapi.py b/lib/spack/spack/compilers/oneapi.py index 0289d266b8..b4bd2bde3d 100644 --- a/lib/spack/spack/compilers/oneapi.py +++ b/lib/spack/spack/compilers/oneapi.py @@ -49,7 +49,7 @@ class Oneapi(Compiler): @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> diff --git a/lib/spack/spack/test/compilers/basics.py b/lib/spack/spack/test/compilers/basics.py index 39bb65254d..d740862905 100644 --- a/lib/spack/spack/test/compilers/basics.py +++ b/lib/spack/spack/test/compilers/basics.py @@ -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") |