Skip to content

Commit 69c2a5b

Browse files
committed
Test devdax CI
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 8f77376 commit 69c2a5b

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/devdax.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# This workflow builds and tests providers using DAX device. It requires
2+
# "level_zero" labeled self-hosted runners installed on systems with the
3+
# appropriate GPU and drivers.
4+
5+
# run only on upstream; forks will not have the HW
6+
# if: github.repository == 'oneapi-src/unified-memory-framework'
7+
8+
name: DEVDAX
9+
10+
on: [push, pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
env:
16+
BUILD_DIR : "${{github.workspace}}/build"
17+
INSTL_DIR : "${{github.workspace}}/../install-dir"
18+
19+
jobs:
20+
devdax:
21+
name: Build
22+
env:
23+
BUILD_TYPE: Debug
24+
strategy:
25+
matrix:
26+
shared_library: ['ON', 'OFF']
27+
os: ['Ubuntu']
28+
include:
29+
- os: 'Ubuntu'
30+
compiler: {c: gcc, cxx: g++}
31+
number_of_processors: '$(nproc)'
32+
33+
runs-on: ["DSS-DEVDAX", "DSS-${{matrix.os}}"]
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
37+
with:
38+
fetch-depth: 0
39+
40+
- name: Get information about platform
41+
run: .github/scripts/get_system_info.sh
42+
43+
- name: Configure build for Ubuntu
44+
run: >
45+
cmake
46+
-B ${{env.BUILD_DIR}}
47+
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
48+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
49+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
50+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
51+
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
52+
-DUMF_BUILD_BENCHMARKS=OFF
53+
-DUMF_BUILD_TESTS=ON
54+
-DUMF_BUILD_GPU_TESTS=OFF
55+
-DUMF_BUILD_GPU_EXAMPLES=OFF
56+
-DUMF_FORMAT_CODE_STYLE=OFF
57+
-DUMF_DEVELOPER_MODE=ON
58+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
59+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
60+
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
61+
-DUMF_TESTS_FAIL_ON_SKIP=ON
62+
-DUMF_TESTS_DEVDAX_PATH=/dev/dax0.0
63+
-DUMF_TESTS_DEVDAX_SIZE=1054867456
64+
65+
- name: Build UMF
66+
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} -j ${{matrix.number_of_processors}}
67+
68+
- name: Run only devdax tests
69+
working-directory: ${{env.BUILD_DIR}}
70+
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure --test-dir test -R devdax

0 commit comments

Comments
 (0)