divide jobs #3
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-build | |
on: [push, pull_request] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
name: Setup OneAPI environment | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: rscohn2/setup-oneapi@v0 | |
with: | |
list: true | |
components: | | |
icx | |
ifx | |
ccl | |
dnn | |
dpl | |
ippcp | |
mkl | |
tbb | |
- name: Setup variables | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> $GITHUB_ENV | |
run_kernels: | |
name: Run all kernels (CPU) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build kernels | |
run: | | |
cd dev/sycl | |
make CC=icx | |
- name: Run kernels | |
run: | | |
cd dev/sycl | |
make run_all CC=icx | |