Skip to content

Commit

Permalink
gpu ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mspronesti committed Jul 29, 2024
1 parent 01ba7f3 commit 26e801d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on: [push, pull_request]

jobs:
setup:
runs-on: ubuntu-latest
name: Run all kernels (CPU)
# 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
Expand All @@ -26,9 +31,15 @@ jobs:
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

0 comments on commit 26e801d

Please sign in to comment.