Skip to content

Commit

Permalink
[ci] fix running cts tests that require device binaries
Browse files Browse the repository at this point in the history
Creating device binaries silently fails if SYCL isn't available.
  • Loading branch information
pbalcer committed Aug 31, 2023
1 parent c1bc465 commit ce6238e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ jobs:
if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
strategy:
matrix:
adapter: [CUDA, HIP, L0]
adapter: [{name: CUDA, triplet: nvptx64-nvidia-cuda}, {name: HIP, triplet: amdgcn-amdhsa}, {name: L0, triplet: spir64}]
build_type: [Debug, Release]
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]

runs-on: ${{matrix.adapter}}
runs-on: ${{matrix.adapter.name}}

steps:
- uses: actions/checkout@v3
Expand All @@ -214,8 +214,9 @@ jobs:

- name: Download DPC++
run: |
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/sycl-nightly%2F20230626/dpcpp-compiler.tar.gz
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2023-08-31/sycl_linux.tar.gz
mkdir dpcpp_compiler
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
- name: Configure CMake
run: >
Expand All @@ -227,11 +228,14 @@ jobs:
-DUR_ENABLE_TRACING=ON
-DUR_DEVELOPER_MODE=ON
-DUR_BUILD_TESTS=ON
-DUR_BUILD_ADAPTER_${{matrix.adapter}}=ON
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
-DUR_CONFORMANCE_TARGET_TRIPLES=${{matrix.adapter.triplet}}
- name: Build
run: cmake --build ${{github.workspace}}/build -j $(nproc)
# This is so that device binaries can find the sycl runtime library
run: LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
cmake --build ${{github.workspace}}/build -j $(nproc)

# Temporarily disabling platform test for L0, because of hang
# See issue: #824
Expand Down

0 comments on commit ce6238e

Please sign in to comment.