Intel oneAPI packages: add 2022.1.1 release (#28096)
Co-authored-by: Egorov, Andrey <andrey.egorov@intel.com>
This commit is contained in:
@@ -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))
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user