1
1
name : E2E Nightly
2
2
3
- on :
4
- schedule :
5
- # Run every day at 23:00 UTC
6
- - cron : ' 0 23 * * *'
3
+ on : [push, pull_request]
4
+ # on:
5
+ # schedule:
6
+ # # Run every day at 23:00 UTC
7
+ # - cron: '0 23 * * *'
7
8
8
9
jobs :
9
10
e2e-build-hw :
11
+ timeout-minutes : 720
10
12
name : Build SYCL, UR, run E2E
11
13
strategy :
12
14
matrix :
13
15
adapter : [
14
- {name: CUDA}
16
+ {name: CUDA, str_name: cuda, prefix: "ext_oneapi_", config: "--cuda --hip", unit: "gpu"},
17
+ {name: OPENCL, str_name: opencl, prefix: "", config: "", unit: "cpu"}
15
18
]
16
19
build_type : [Release]
17
20
compiler : [{c: clang, cxx: clang++}]
@@ -59,12 +62,18 @@ jobs:
59
62
run : LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
60
63
cmake --build ${{github.workspace}}/ur-repo/build -j $(nproc)
61
64
62
- - name : Set env vars & pre setup
65
+ - name : Set prefer UR
66
+ run : echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV
67
+
68
+ - name : Set CUDA env vars
69
+ if : matrix.adapter.name == 'CUDA'
63
70
run : |
64
- echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV
65
71
echo "CUDA_LIB_PATH=/usr/local/cuda/lib64/stubs" >> $GITHUB_ENV
66
72
echo "LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
67
- source /opt/intel/oneapi/setvars.sh
73
+
74
+ - name : Run pre setup
75
+ run : |
76
+ source /opt/intel/oneapi/setvars.sh --force
68
77
sycl-ls
69
78
70
79
- name : Configure SYCL
73
82
-t ${{matrix.build_type}}
74
83
-o ${{github.workspace}}/sycl_build
75
84
--cmake-gen "Unix Makefiles"
76
- --ci-defaults --cuda --hip
85
+ --ci-defaults ${{matrix.adapter.config}}
77
86
--cmake-opt="-DLLVM_INSTALL_UTILS=ON"
78
87
--cmake-opt="-DSYCL_PI_TESTS=OFF"
79
88
--cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache
91
100
- name : Swap UR loader and adapters
92
101
run : |
93
102
cp ${{github.workspace}}/ur-repo/build/lib/libur_loader.so* ${{github.workspace}}/sycl_build/lib/
94
- cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_cuda .so* ${{github.workspace}}/sycl_build/lib/
103
+ cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_${{matrix.adapter.str_name}} .so* ${{github.workspace}}/sycl_build/lib/
95
104
96
105
- name : Set additional env. vars
97
106
run : |
@@ -110,7 +119,7 @@ jobs:
110
119
-GNinja
111
120
-B ${{github.workspace}}/build-e2e/
112
121
-S ${{github.workspace}}/sycl-repo/sycl/test-e2e/
113
- -DSYCL_TEST_E2E_TARGETS="ext_oneapi_cuda:gpu "
122
+ -DSYCL_TEST_E2E_TARGETS="${{matrix.adapter.prefix}}${{matrix.adapter.str_name}}:${{matrix.adapter.unit}} "
114
123
-DCMAKE_CXX_COMPILER="$(which clang++)"
115
124
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
116
125
0 commit comments