Skip to content

Commit 9d98b90

Browse files
Merge pull request #1030 from KFilipek/test-icx
Make ICX enabled again
2 parents a03cdb9 + e349520 commit 9d98b90

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

.github/workflows/reusable_basic.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ jobs:
7474
disable_hwloc: 'OFF'
7575
link_hwloc_statically: 'OFF'
7676
# test icx compiler
77-
# - os: 'ubuntu-22.04'
78-
# build_type: Release
79-
# compiler: {c: icx, cxx: icpx}
80-
# shared_library: 'ON'
81-
# level_zero_provider: 'ON'
82-
# cuda_provider: 'ON'
83-
# install_tbb: 'ON'
84-
# disable_hwloc: 'OFF'
85-
# link_hwloc_statically: 'OFF'
77+
- os: 'ubuntu-22.04'
78+
build_type: Release
79+
compiler: {c: icx, cxx: icpx}
80+
shared_library: 'ON'
81+
level_zero_provider: 'ON'
82+
cuda_provider: 'ON'
83+
install_tbb: 'ON'
84+
disable_hwloc: 'OFF'
85+
link_hwloc_statically: 'OFF'
8686
# test without installing TBB
8787
- os: 'ubuntu-22.04'
8888
build_type: Release
@@ -182,8 +182,7 @@ jobs:
182182
- name: Run tests
183183
working-directory: ${{env.BUILD_DIR}}
184184
run: |
185-
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
186-
ctest --output-on-failure # run all tests for better coverage
185+
LD_LIBRARY_PATH=${{env.BUILD_DIR}}/lib/ ctest --output-on-failure # run all tests for better coverage
187186
188187
- name: Check coverage
189188
if: ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}

.github/workflows/reusable_sanitizers.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
ASAN_OPTIONS: allocator_may_return_null=1
7878
TSAN_OPTIONS: allocator_may_return_null=1
7979
run: |
80-
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
8180
ctest --output-on-failure
8281
8382
windows-build:

cmake/helpers.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023-2024 Intel Corporation
1+
# Copyright (C) 2023-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -378,6 +378,9 @@ function(add_umf_library)
378378
elseif(LINUX)
379379
target_link_options(${ARG_NAME} PRIVATE
380380
"-Wl,--version-script=${ARG_LINUX_MAP_FILE}")
381+
if(CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
382+
target_link_options(${ARG_NAME} PRIVATE -no-intel-lib)
383+
endif()
381384
endif()
382385
endif()
383386

test/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
# Copyright (C) 2022-2024 Intel Corporation
1+
# Copyright (C) 2022-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED YES)
77

8+
if(CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
9+
# Compiler dependencies needs to be in library path or to be linked
10+
# statically
11+
add_link_options(-static-intel)
12+
endif()
13+
814
include(FetchContent)
915
FetchContent_Declare(
1016
googletest

0 commit comments

Comments
 (0)