detect ifx 2023.1, add test (#37377)
This commit is contained in:
		| @@ -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): | ||||
|   | ||||
| @@ -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): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Robert Cohn
					Robert Cohn