Skip to content

Add informative error message when IntelSYCL is not found #1089

Add informative error message when IntelSYCL is not found

Add informative error message when IntelSYCL is not found #1089

Workflow file for this run

name: C/C++ CI
on: [push]
jobs:
build-in-linux-container:
runs-on: ubuntu-latest
container:
image: intel/oneapi:2024.1.0-devel-ubuntu22.04
steps:
- uses: actions/checkout@v3
- name: Create Build Dir
run: mkdir -p ${{github.workspace}}/build
- name: Set SYCL environment variable
run: echo "SYCL_DIR=/opt/intel/oneapi/compiler/2024.1/lib/cmake/IntelSYCL" >> $GITHUB_ENV
- name: Configure
working-directory: ${{github.workspace}}/build
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=Release -DOPENMIND_BUILD_SAMPLES=OFF -DOPENMIND_BUILD_TESTS=ON
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C Release