Skip to content

Commit 41f9d6e

Browse files
committed
[CI][OpenCL] adapt e2e workflow to opencl target
1 parent 69a56ea commit 41f9d6e

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/e2e_nightly.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: E2E Nightly
22

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 * * *'
78

89
jobs:
910
e2e-build-hw:
11+
timeout-minutes: 720
1012
name: Build SYCL, UR, run E2E
1113
strategy:
1214
matrix:
1315
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"}
1518
]
1619
build_type: [Release]
1720
compiler: [{c: clang, cxx: clang++}]
@@ -59,12 +62,18 @@ jobs:
5962
run: LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
6063
cmake --build ${{github.workspace}}/ur-repo/build -j $(nproc)
6164

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'
6370
run: |
64-
echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV
6571
echo "CUDA_LIB_PATH=/usr/local/cuda/lib64/stubs" >> $GITHUB_ENV
6672
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
6877
sycl-ls
6978
7079
- name: Configure SYCL
@@ -73,7 +82,7 @@ jobs:
7382
-t ${{matrix.build_type}}
7483
-o ${{github.workspace}}/sycl_build
7584
--cmake-gen "Unix Makefiles"
76-
--ci-defaults --cuda --hip
85+
--ci-defaults ${{matrix.adapter.config}}
7786
--cmake-opt="-DLLVM_INSTALL_UTILS=ON"
7887
--cmake-opt="-DSYCL_PI_TESTS=OFF"
7988
--cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache
@@ -91,7 +100,7 @@ jobs:
91100
- name: Swap UR loader and adapters
92101
run: |
93102
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/
95104
96105
- name: Set additional env. vars
97106
run: |
@@ -110,7 +119,7 @@ jobs:
110119
-GNinja
111120
-B ${{github.workspace}}/build-e2e/
112121
-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}}"
114123
-DCMAKE_CXX_COMPILER="$(which clang++)"
115124
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
116125

0 commit comments

Comments
 (0)