summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Cohn <robert.s.cohn@intel.com>2023-05-04 13:27:19 -0400
committerGitHub <noreply@github.com>2023-05-04 10:27:19 -0700
commit420e093e427514d04247c7f52ea1e5d3808f26e7 (patch)
tree8cd82cd84ea633128a49836315ebd6fdeaebb3ce /lib
parent8e73eeb4b9cfdec6d1457cd24a472f8fd9ee5bf9 (diff)
downloadspack-420e093e427514d04247c7f52ea1e5d3808f26e7.tar.gz
spack-420e093e427514d04247c7f52ea1e5d3808f26e7.tar.bz2
spack-420e093e427514d04247c7f52ea1e5d3808f26e7.tar.xz
spack-420e093e427514d04247c7f52ea1e5d3808f26e7.zip
detect ifx 2023.1, add test (#37377)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/oneapi.py2
-rw-r--r--lib/spack/spack/test/compilers/detection.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/spack/compilers/oneapi.py b/lib/spack/spack/compilers/oneapi.py
index 36fa1eca5f..fde6fa677a 100644
--- a/lib/spack/spack/compilers/oneapi.py
+++ b/lib/spack/spack/compilers/oneapi.py
@@ -34,7 +34,7 @@ class Oneapi(Compiler):
PrgEnv_compiler = "oneapi"
version_argument = "--version"
- version_regex = r"(?:(?:oneAPI DPC\+\+(?:\/C\+\+)? Compiler)|(?:\(IFORT\))) (\S+)"
+ version_regex = r"(?:(?:oneAPI DPC\+\+(?:\/C\+\+)? Compiler)|(?:\(IFORT\))|(?:\(IFX\))) (\S+)"
@property
def verbose_flag(self):
diff --git a/lib/spack/spack/test/compilers/detection.py b/lib/spack/spack/test/compilers/detection.py
index ef1beb1250..93741bf4c2 100644
--- a/lib/spack/spack/test/compilers/detection.py
+++ b/lib/spack/spack/test/compilers/detection.py
@@ -263,6 +263,11 @@ def test_intel_version_detection(version_str, expected_version):
"Copyright (C) 1985-2021 Intel Corporation. All rights reserved.",
"2022.0.0",
),
+ ( # IFX
+ "ifx (IFX) 2023.1.0 20230320\n"
+ "Copyright (C) 1985-2023 Intel Corporation. All rights reserved.",
+ "2023.1.0",
+ ),
],
)
def test_oneapi_version_detection(version_str, expected_version):