Skip to content

Commit

Permalink
[CI][OpenCL] adapt e2e workflow to opencl target
Browse files Browse the repository at this point in the history
  • Loading branch information
wlemkows committed Dec 14, 2023
1 parent 69a56ea commit 75dd42d
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/e2e_nightly.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: E2E Nightly

on:
schedule:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'
on: [push, pull_request]
#on:
# schedule:
# # Run every day at 23:00 UTC
# - cron: '0 23 * * *'

jobs:
e2e-build-hw:
name: Build SYCL, UR, run E2E
strategy:
matrix:
adapter: [
{name: CUDA}
{name: CUDA, str_name: cuda, prefix: "ext_oneapi", config: "--cuda --hip", unit: "gpu"},
{name: OPENCL, str_name: opencl, prefix: "", config: "", unit: "cpu"}
]
build_type: [Release]
compiler: [{c: clang, cxx: clang++}]
Expand Down Expand Up @@ -59,12 +61,18 @@ jobs:
run: LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
cmake --build ${{github.workspace}}/ur-repo/build -j $(nproc)

- name: Set env vars & pre setup
- name: Set prefer UR
run: echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV

- name: Set CUDA env vars
if: matrix.adapter.name == 'CUDA'
run: |
echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV
echo "CUDA_LIB_PATH=/usr/local/cuda/lib64/stubs" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
source /opt/intel/oneapi/setvars.sh
- name: Run pre setup
run: |
source /opt/intel/oneapi/setvars.sh --force
sycl-ls
- name: Configure SYCL
Expand All @@ -73,7 +81,7 @@ jobs:
-t ${{matrix.build_type}}
-o ${{github.workspace}}/sycl_build
--cmake-gen "Unix Makefiles"
--ci-defaults --cuda --hip
--ci-defaults ${{matrix.adapter.config}}
--cmake-opt="-DLLVM_INSTALL_UTILS=ON"
--cmake-opt="-DSYCL_PI_TESTS=OFF"
--cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache
Expand All @@ -91,7 +99,7 @@ jobs:
- name: Swap UR loader and adapters
run: |
cp ${{github.workspace}}/ur-repo/build/lib/libur_loader.so* ${{github.workspace}}/sycl_build/lib/
cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_cuda.so* ${{github.workspace}}/sycl_build/lib/
cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_${{matrix.adapter.str_name}}.so* ${{github.workspace}}/sycl_build/lib/
- name: Set additional env. vars
run: |
Expand All @@ -110,7 +118,7 @@ jobs:
-GNinja
-B ${{github.workspace}}/build-e2e/
-S ${{github.workspace}}/sycl-repo/sycl/test-e2e/
-DSYCL_TEST_E2E_TARGETS="ext_oneapi_cuda:gpu"
-DSYCL_TEST_E2E_TARGETS="${{matrix.adapter.prefix}}_${{matrix.adapter.str_name}}:${{matrix.adapter.unit}}"
-DCMAKE_CXX_COMPILER="$(which clang++)"
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
Expand Down

0 comments on commit 75dd42d

Please sign in to comment.