Skip to content

Commit ac66827

Browse files
lukaszstolarczukKFilipek
authored andcommitted
[CI] test only icx
1 parent da8cfb8 commit ac66827

File tree

3 files changed

+7
-159
lines changed

3 files changed

+7
-159
lines changed

.github/workflows/pr_push.yml

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -16,75 +16,6 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
CodeChecks:
20-
uses: ./.github/workflows/reusable_checks.yml
21-
DocsBuild:
22-
uses: ./.github/workflows/reusable_docs_build.yml
23-
FastBuild:
24-
name: Fast builds
25-
needs: [CodeChecks, DocsBuild]
26-
uses: ./.github/workflows/reusable_fast.yml
2719
Build:
2820
name: Basic builds
29-
needs: [FastBuild]
3021
uses: ./.github/workflows/reusable_basic.yml
31-
DevDax:
32-
needs: [FastBuild]
33-
uses: ./.github/workflows/reusable_dax.yml
34-
MultiNuma:
35-
needs: [FastBuild]
36-
uses: ./.github/workflows/reusable_multi_numa.yml
37-
L0:
38-
needs: [Build]
39-
uses: ./.github/workflows/reusable_gpu.yml
40-
with:
41-
name: "LEVEL_ZERO"
42-
shared_lib: "['ON']"
43-
CUDA:
44-
needs: [Build]
45-
uses: ./.github/workflows/reusable_gpu.yml
46-
with:
47-
name: "CUDA"
48-
shared_lib: "['ON']"
49-
Sanitizers:
50-
needs: [FastBuild]
51-
uses: ./.github/workflows/reusable_sanitizers.yml
52-
QEMU:
53-
needs: [FastBuild]
54-
uses: ./.github/workflows/reusable_qemu.yml
55-
with:
56-
short_run: true
57-
Benchmarks:
58-
needs: [Build]
59-
uses: ./.github/workflows/reusable_benchmarks.yml
60-
ProxyLib:
61-
needs: [Build]
62-
uses: ./.github/workflows/reusable_proxy_lib.yml
63-
Valgrind:
64-
needs: [Build]
65-
uses: ./.github/workflows/reusable_valgrind.yml
66-
Coverage:
67-
# total coverage (on upstream only)
68-
if: github.repository == 'oneapi-src/unified-memory-framework'
69-
needs: [Build, DevDax, L0, CUDA, MultiNuma, QEMU, ProxyLib]
70-
uses: ./.github/workflows/reusable_coverage.yml
71-
secrets: inherit
72-
with:
73-
trigger: "${{github.event_name}}"
74-
Coverage_partial:
75-
# partial coverage (on forks)
76-
if: github.repository != 'oneapi-src/unified-memory-framework'
77-
needs: [Build, QEMU, ProxyLib]
78-
uses: ./.github/workflows/reusable_coverage.yml
79-
CodeQL:
80-
needs: [Build]
81-
permissions:
82-
contents: read
83-
security-events: write
84-
uses: ./.github/workflows/reusable_codeql.yml
85-
Trivy:
86-
needs: [Build]
87-
permissions:
88-
contents: read
89-
security-events: write
90-
uses: ./.github/workflows/reusable_trivy.yml

.github/workflows/reusable_basic.yml

Lines changed: 6 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -16,101 +16,17 @@ jobs:
1616
ubuntu-build:
1717
name: Ubuntu
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
os: ['ubuntu-20.04', 'ubuntu-22.04']
2122
build_type: [Debug, Release]
22-
compiler: [{c: gcc, cxx: g++}]
23-
shared_library: ['OFF']
23+
shared_library: ['ON']
2424
level_zero_provider: ['ON']
2525
cuda_provider: ['ON']
2626
install_tbb: ['ON']
2727
disable_hwloc: ['OFF']
2828
link_hwloc_statically: ['OFF']
29-
include:
30-
- os: 'ubuntu-20.04'
31-
build_type: Release
32-
compiler: {c: gcc-7, cxx: g++-7}
33-
shared_library: 'OFF'
34-
level_zero_provider: 'ON'
35-
cuda_provider: 'ON'
36-
install_tbb: 'ON'
37-
disable_hwloc: 'OFF'
38-
link_hwloc_statically: 'OFF'
39-
- os: 'ubuntu-22.04'
40-
build_type: Release
41-
compiler: {c: clang, cxx: clang++}
42-
shared_library: 'OFF'
43-
level_zero_provider: 'ON'
44-
cuda_provider: 'ON'
45-
install_tbb: 'ON'
46-
disable_hwloc: 'OFF'
47-
link_hwloc_statically: 'OFF'
48-
- os: 'ubuntu-22.04'
49-
build_type: Release
50-
compiler: {c: gcc, cxx: g++}
51-
shared_library: 'ON'
52-
level_zero_provider: 'ON'
53-
cuda_provider: 'ON'
54-
install_tbb: 'ON'
55-
disable_hwloc: 'OFF'
56-
link_hwloc_statically: 'OFF'
57-
- os: 'ubuntu-24.04'
58-
build_type: Debug
59-
compiler: {c: gcc, cxx: g++}
60-
shared_library: 'ON'
61-
level_zero_provider: 'ON'
62-
cuda_provider: 'ON'
63-
install_tbb: 'ON'
64-
disable_hwloc: 'OFF'
65-
link_hwloc_statically: 'OFF'
66-
# test level_zero_provider='OFF' and cuda_provider='OFF'
67-
- os: 'ubuntu-22.04'
68-
build_type: Release
69-
compiler: {c: gcc, cxx: g++}
70-
shared_library: 'OFF'
71-
level_zero_provider: 'OFF'
72-
cuda_provider: 'OFF'
73-
install_tbb: 'ON'
74-
disable_hwloc: 'OFF'
75-
link_hwloc_statically: 'OFF'
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'
86-
# test without installing TBB
87-
- os: 'ubuntu-22.04'
88-
build_type: Release
89-
compiler: {c: gcc, cxx: g++}
90-
shared_library: 'ON'
91-
level_zero_provider: 'ON'
92-
cuda_provider: 'ON'
93-
install_tbb: 'OFF'
94-
disable_hwloc: 'OFF'
95-
link_hwloc_statically: 'OFF'
96-
- os: 'ubuntu-22.04'
97-
build_type: Debug
98-
compiler: {c: gcc, cxx: g++}
99-
shared_library: 'ON'
100-
level_zero_provider: 'ON'
101-
cuda_provider: 'ON'
102-
install_tbb: 'ON'
103-
disable_hwloc: 'ON'
104-
link_hwloc_statically: 'OFF'
105-
- os: 'ubuntu-22.04'
106-
build_type: Release
107-
compiler: {c: gcc, cxx: g++}
108-
shared_library: 'ON'
109-
level_zero_provider: 'ON'
110-
cuda_provider: 'ON'
111-
install_tbb: 'ON'
112-
disable_hwloc: 'OFF'
113-
link_hwloc_statically: 'ON'
29+
compiler: [{c: icx, cxx: icpx}]
11430
runs-on: ${{matrix.os}}
11531

11632
steps:
@@ -137,7 +53,7 @@ jobs:
13753
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
13854
sudo apt-get update
13955
sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
140-
56+
14157
- name: Install g++-7
14258
if: matrix.compiler.cxx == 'g++-7'
14359
run: sudo apt-get install -y ${{matrix.compiler.cxx}}
@@ -172,17 +88,18 @@ jobs:
17288
-DUMF_TESTS_FAIL_ON_SKIP=ON
17389
-DUMF_DISABLE_HWLOC=${{matrix.disable_hwloc}}
17490
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}}
91+
-DUMF_INSTALL_RPATH=${{env.BUILD_DIR}}/lib
17592
${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' && '-DUMF_USE_COVERAGE=ON' || '' }}
17693
17794
- name: Build UMF
17895
run: |
17996
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
18097
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
18198
99+
# ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
182100
- name: Run tests
183101
working-directory: ${{env.BUILD_DIR}}
184102
run: |
185-
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
186103
ctest --output-on-failure # run all tests for better coverage
187104
188105
- name: Check coverage

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(build_umf_test)
3939
set(TEST_NAME umf-${ARG_NAME})
4040
set(TEST_TARGET_NAME umf_test-${ARG_NAME})
4141

42-
set(LIB_DIRS ${LIB_DIRS} ${LIBHWLOC_LIBRARY_DIRS})
42+
set(LIB_DIRS ${LIB_DIRS} ${CMAKE_BINARY_DIR}/lib ${LIBHWLOC_LIBRARY_DIRS})
4343

4444
if(UMF_BUILD_CUDA_PROVIDER)
4545
set(INC_DIRS ${INC_DIRS} ${CUDA_INCLUDE_DIRS})

0 commit comments

Comments
 (0)