detect ifx 2023.1, add test (#37377)
This commit is contained in:
parent
8e73eeb4b9
commit
420e093e42
@ -34,7 +34,7 @@ class Oneapi(Compiler):
|
|||||||
PrgEnv_compiler = "oneapi"
|
PrgEnv_compiler = "oneapi"
|
||||||
|
|
||||||
version_argument = "--version"
|
version_argument = "--version"
|
||||||
version_regex = r"(?:(?:oneAPI DPC\+\+(?:\/C\+\+)? Compiler)|(?:\(IFORT\))) (\S+)"
|
version_regex = r"(?:(?:oneAPI DPC\+\+(?:\/C\+\+)? Compiler)|(?:\(IFORT\))|(?:\(IFX\))) (\S+)"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def verbose_flag(self):
|
def verbose_flag(self):
|
||||||
|
@ -263,6 +263,11 @@ def test_intel_version_detection(version_str, expected_version):
|
|||||||
"Copyright (C) 1985-2021 Intel Corporation. All rights reserved.",
|
"Copyright (C) 1985-2021 Intel Corporation. All rights reserved.",
|
||||||
"2022.0.0",
|
"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):
|
def test_oneapi_version_detection(version_str, expected_version):
|
||||||
|
Loading…
Reference in New Issue
Block a user