improved performance scripts #93
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
name: OneAPI CI with CMake | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linux-intel-oneapi: | |
runs-on: ubuntu-latest | |
env: | |
BUILD_DIR: cmake-build-debug | |
steps: | |
- name: Checkout project code | |
uses: actions/checkout@v2 | |
- name: Install Intel oneAPI | |
timeout-minutes: 5 | |
run: | | |
./install-dpcpp.sh | |
- name: Set oneAPI environment | |
run: | | |
source ./setvars.sh | |
printenv >> $GITHUB_ENV | |
echo /opt/intel/oneapi/compiler/latest/linux/bin-llvm >> $GITHUB_PATH | |
- name: CMake configure | |
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B $BUILD_DIR | |
- name: CMake build | |
run: cmake --build $BUILD_DIR | |
- name: CMake test | |
run: | | |
$BUILD_DIR/bin/integration | |
$BUILD_DIR/bin/matrix_mul_dpc | |
$BUILD_DIR/bin/montecarlo | |
# eventually keep only this loop for discovering all tests | |
for test_bin in $BUILD_DIR/bin/*tests; do "./$test_bin"; done |