Skip to content

Commit 192a5bc

Browse files
[CI] Add multi-numa workflow
1 parent 935a98c commit 192a5bc

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/multi_numa.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Runs tests on multi-numa machine
2+
name: MultiNuma
3+
4+
on: [workflow_call]
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
multi_numa:
11+
name: ${{matrix.os}}
12+
# run only on upstream; forks will not have the HW
13+
if: github.repository == 'oneapi-src/unified-memory-framework'
14+
15+
strategy:
16+
matrix:
17+
os: [ubuntu-22.04, RHEL-9]
18+
build_type: [Release]
19+
compiler: [{c: gcc, cxx: g++}]
20+
shared_library: ['OFF']
21+
runs-on: ["DSS-MULTI-NUMA", "DSS-${{matrix.os}}"]
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+
27+
- name: Get information about platform
28+
run: .github/scripts/get_system_info.sh
29+
30+
- name: Configure build
31+
run: >
32+
cmake
33+
-B ${{github.workspace}}/build
34+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
35+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
36+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
37+
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
38+
-DUMF_BUILD_BENCHMARKS=OFF
39+
-DUMF_BUILD_TESTS=ON
40+
-DUMF_DEVELOPER_MODE=ON
41+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
42+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
43+
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON
44+
-DUMF_ENABLE_POOL_TRACKING=ON
45+
46+
- name: Build UMF
47+
run: cmake --build ${{github.workspace}}/build -j $(nproc)
48+
49+
- name: Run tests
50+
working-directory: ${{github.workspace}}/build
51+
run: ctest --output-on-failure --test-dir test

.github/workflows/pr_push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,6 @@ jobs:
156156
Valgrind:
157157
needs: [Build]
158158
uses: ./.github/workflows/valgrind.yml
159+
MultiNuma:
160+
needs: [Build]
161+
uses: ./.github/workflows/multi_numa.yml

0 commit comments

Comments
 (0)