Skip to content

Adding CMake Presets #2741

Adding CMake Presets

Adding CMake Presets #2741

Workflow file for this run

name: Intel-build
on:
push:
branches:
- 'master'
- 'develop'
- 'release/**'
tags:
- '**'
pull_request:
types: [opened,synchronize]
concurrency:
group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}
cancel-in-progress: true
jobs:
intel:
strategy:
fail-fast: false
matrix:
config:
- { preset: "ci/sycl/dpcpp/nompi/release/singlemode" }
- { preset: "ci/sycl/icpx/nompi/release/singlemode/nomixed" }
name: ${{ matrix.config.preset }}
runs-on: [gpu_intel]
steps:
- name: Checkout the latest code (shallow clone)
uses: actions/checkout@v4
- name: configure
run: |
source /etc/profile
module load intel-oneapi-compilers intel-oneapi-dpl intel-oneapi-mkl intel-oneapi-tbb cmake
mkdir build
cd build
cmake -S .. -B . --preset ${{ matrix.config.preset }} -DCMAKE_INSTALL_PREFIX=install_ginkgo
cmake --build . -j8
ONEAPI_DEVICE_SELECTOR=level_zero:gpu ctest -j10 --output-on-failure
- name: install
run: |
source /etc/profile
module load intel-oneapi-compilers intel-oneapi-dpl intel-oneapi-mkl intel-oneapi-tbb cmake
cd build
SYCL_DEVICE_FILTER=level_zero:gpu make install
export GINKGO_PATH="$(pwd)/install_ginkgo/lib"
export LIBRARY_PATH=${GINKGO_PATH}:$LIBRARY_PATH
export LD_LIBRARY_PATH=${GINKGO_PATH}:$LD_LIBRARY_PATH
SYCL_DEVICE_FILTER=level_zero:gpu make test_install