Skip to content

gpu ci

gpu ci #8

Workflow file for this run

name: oneAPI-build
on: [push, pull_request]
jobs:
setup:
# add strategy
strategy:
matrix:
os: [ubuntu-latest, devcloud] # devcloud is a self hosted GPU runner
runs-on: ${{ matrix.os }}
name: Run all kernels
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
- name: Build kernels
run: |
if [ ${{ matrix.os }} == "devcloud" ]; then
qsub -I -l nodes=1:gpu:ppn=2 -d .
fi
cd dev/sycl
make CC=icx
- name: Run kernels
run: |
if [ ${{ matrix.os }} == "devcloud" ]; then
qsub -I -l nodes=1:gpu:ppn=2 -d .
fi
cd dev/sycl
make run_all CC=icx