File tree Expand file tree Collapse file tree 4 files changed +21
-14
lines changed Expand file tree Collapse file tree 4 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ jobs:
74
74
disable_hwloc : ' OFF'
75
75
link_hwloc_statically : ' OFF'
76
76
# 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'
86
86
# test without installing TBB
87
87
- os : ' ubuntu-22.04'
88
88
build_type : Release
@@ -182,8 +182,7 @@ jobs:
182
182
- name : Run tests
183
183
working-directory : ${{env.BUILD_DIR}}
184
184
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
187
186
188
187
- name : Check coverage
189
188
if : ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}
Original file line number Diff line number Diff line change 77
77
ASAN_OPTIONS : allocator_may_return_null=1
78
78
TSAN_OPTIONS : allocator_may_return_null=1
79
79
run : |
80
- ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
81
80
ctest --output-on-failure
82
81
83
82
windows-build :
Original file line number Diff line number Diff line change 1
- # Copyright (C) 2023-2024 Intel Corporation
1
+ # Copyright (C) 2023-2025 Intel Corporation
2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
@@ -378,6 +378,9 @@ function(add_umf_library)
378
378
elseif (LINUX )
379
379
target_link_options (${ARG_NAME} PRIVATE
380
380
"-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 ()
381
384
endif ()
382
385
endif ()
383
386
Original file line number Diff line number Diff line change 1
- # Copyright (C) 2022-2024 Intel Corporation
1
+ # Copyright (C) 2022-2025 Intel Corporation
2
2
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
3
3
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
4
5
5
set (CMAKE_CXX_STANDARD 17 )
6
6
set (CMAKE_CXX_STANDARD_REQUIRED YES )
7
7
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
+
8
14
include (FetchContent )
9
15
FetchContent_Declare (
10
16
googletest
You can’t perform that action at this time.
0 commit comments