Skip to content

Commit 29623eb

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

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/devdax.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
DEVDAX_PATH : "/dev/dax0.0"
19+
DEVDAX_SIZE : 1054867456
20+
21+
jobs:
22+
devdax:
23+
name: Build
24+
env:
25+
BUILD_TYPE: Debug
26+
strategy:
27+
matrix:
28+
shared_library: ['ON', 'OFF']
29+
os: ['Ubuntu']
30+
include:
31+
- os: 'Ubuntu'
32+
compiler: {c: gcc, cxx: g++}
33+
number_of_processors: '$(nproc)'
34+
35+
runs-on: ["DSS-DEVDAX", "DSS-${{matrix.os}}"]
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39+
with:
40+
fetch-depth: 0
41+
42+
- name: Get information about platform
43+
run: .github/scripts/get_system_info.sh
44+
45+
- name: Configure build for Ubuntu
46+
run: >
47+
cmake
48+
-B ${{env.BUILD_DIR}}
49+
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
50+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
51+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
52+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
53+
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
54+
-DUMF_BUILD_BENCHMARKS=OFF
55+
-DUMF_BUILD_TESTS=ON
56+
-DUMF_BUILD_GPU_TESTS=OFF
57+
-DUMF_BUILD_GPU_EXAMPLES=OFF
58+
-DUMF_FORMAT_CODE_STYLE=OFF
59+
-DUMF_DEVELOPER_MODE=ON
60+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
61+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
62+
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
63+
-DUMF_TESTS_FAIL_ON_SKIP=ON
64+
-DUMF_TESTS_DEVDAX_PATH=${{env.DEVDAX_PATH}}
65+
-DUMF_TESTS_DEVDAX_SIZE=${{env.DEVDAX_SIZE}}
66+
67+
- name: Build UMF
68+
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} -j ${{matrix.number_of_processors}}
69+
70+
- name: Run only devdax tests
71+
working-directory: ${{env.BUILD_DIR}}
72+
run: ctest -C ${{env.BUILD_TYPE}} -R devdax -V

0 commit comments

Comments
 (0)