summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnna Masalskaya <anna.masalskaya@intel.com>2021-10-01 16:58:32 +0300
committerGitHub <noreply@github.com>2021-10-01 15:58:32 +0200
commit8fc770608de4892d951ad1c5846d6e380f09e4d2 (patch)
tree7c3baac39bfba378b7c6af860a2a27d1331267c3 /lib
parent91f668a695580a28f21fa1238df98eb4dccb018b (diff)
downloadspack-8fc770608de4892d951ad1c5846d6e380f09e4d2.tar.gz
spack-8fc770608de4892d951ad1c5846d6e380f09e4d2.tar.bz2
spack-8fc770608de4892d951ad1c5846d6e380f09e4d2.tar.xz
spack-8fc770608de4892d951ad1c5846d6e380f09e4d2.zip
Add oneAPI packages from 2021.4 release (#26401)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/compilers/detection.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/spack/spack/test/compilers/detection.py b/lib/spack/spack/test/compilers/detection.py
index 06095c4bf4..8bc3285d43 100644
--- a/lib/spack/spack/test/compilers/detection.py
+++ b/lib/spack/spack/test/compilers/detection.py
@@ -177,6 +177,13 @@ def test_intel_version_detection(version_str, expected_version):
'InstalledDir: /made/up/path',
'2021.3.0'
),
+ ( # ICX/ICPX
+ 'Intel(R) oneAPI DPC++/C++ Compiler 2021.4.0 (2021.4.0.20210924)\n'
+ 'Target: x86_64-unknown-linux-gnu\n'
+ 'Thread model: posix\n'
+ 'InstalledDir: /made/up/path',
+ '2021.4.0'
+ ),
( # IFX
'ifx (IFORT) 2021.1.2 Beta 20201214\n'
'Copyright (C) 1985-2020 Intel Corporation. All rights reserved.',
@@ -192,6 +199,11 @@ def test_intel_version_detection(version_str, expected_version):
'Copyright (C) 1985-2020 Intel Corporation. All rights reserved.',
'2021.3.0'
),
+ ( # IFX
+ 'ifx (IFORT) 2021.4.0 Beta 20210924\n'
+ 'Copyright (C) 1985-2021 Intel Corporation. All rights reserved.',
+ '2021.4.0'
+ ),
])
def test_oneapi_version_detection(version_str, expected_version):
version = spack.compilers.oneapi.Oneapi.extract_version_from_output(