Intel oneAPI packages: add 2022.1.1 release (#28096)

Co-authored-by: Egorov, Andrey <andrey.egorov@intel.com>
This commit is contained in:
Robert Cohn
2021-12-20 17:06:32 -05:00
committed by GitHub
parent c68652c88c
commit d45280369f
16 changed files with 77 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from os.path import dirname
from spack.compiler import Compiler
@@ -105,3 +107,11 @@ def fc_pic_flag(self):
@property
def stdcxx_libs(self):
return ('-cxxlib', )
def setup_custom_environment(self, pkg, env):
# workaround bug in icpx driver where it requires sycl-post-link is on the PATH
# It is located in the same directory as the driver. Error message:
# clang++: error: unable to execute command:
# Executable "sycl-post-link" doesn't exist!
if self.cxx:
env.prepend_path('PATH', dirname(self.cxx))

View File

@@ -204,6 +204,11 @@ def test_intel_version_detection(version_str, expected_version):
'Copyright (C) 1985-2021 Intel Corporation. All rights reserved.',
'2021.4.0'
),
( # IFX
'ifx (IFORT) 2022.0.0 20211123\n'
'Copyright (C) 1985-2021 Intel Corporation. All rights reserved.',
'2022.0.0'
),
])
def test_oneapi_version_detection(version_str, expected_version):
version = spack.compilers.oneapi.Oneapi.extract_version_from_output(