WIP: Reuse license #626
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2017-2023 The Ginkgo authors | |
# | |
# SPDX-License-Identifier: BSD-3-Clause | |
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: | |
- {build_type: "Release", name: "intel/release/shared", "mixed": "ON"} | |
name: ${{ matrix.config.name }} | |
runs-on: [gpu_intel] | |
steps: | |
- name: Checkout the latest code (shallow clone) | |
uses: actions/checkout@v3 | |
- name: configure | |
run: | | |
spack load intel-oneapi-compilers intel-oneapi-dpl intel-oneapi-mkl intel-oneapi-tbb cmake | |
spack find --loaded | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=install_ginkgo -DGINKGO_COMPILER_FLAGS="-ffp-model=precise" -DCMAKE_CXX_COMPILER=dpcpp -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DGINKGO_MIXED_PRECISION=${{ matrix.config.mixed }} -DGINKGO_DPCPP_SINGLE_MODE=ON | |
make -j8 | |
ONEAPI_DEVICE_SELECTOR=level_zero:gpu ctest -j10 --output-on-failure | |
- name: install | |
run: | | |
spack load intel-oneapi-compilers intel-oneapi-dpl intel-oneapi-mkl intel-oneapi-tbb cmake | |
cd build | |
SYCL_DEVICE_FILTER=level_zero 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 make test_install |