Skip to content

Commit

Permalink
ci: add openmp-offload with oneAPI compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bd4 committed Jul 14, 2023
1 parent 8795193 commit db09020
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/sycl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
ONEAPI_DEVICE_SELECTOR: opencl:cpu
BACKEND: sycl
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -22,11 +21,19 @@ jobs:
run: |
which sycl-ls
sycl-ls
- name: make
run: cd $BACKEND; CC=oneapi make -j4
- name: run nuclide
run: ./$BACKEND/XSBench -m event -s small -G nuclide
- name: run hash
run: ./$BACKEND/XSBench -m event -s small -G hash
- name: run unionized
run: ./$BACKEND/XSBench -m event -s small -G unionized
- name: make sycl
run: cd sycl; CC=oneapi make -j4
- name: run sycl nuclide
run: ./sycl/XSBench -m event -s small -G nuclide
- name: run sycl hash
run: ./sycl/XSBench -m event -s small -G hash
- name: run sycl unionized
run: ./sycl/XSBench -m event -s small -G unionized
- name: make openmp-offload
run: cd openmp-offload; COMPILER=intel make -j4
- name: run openmp-offload nuclide
run: ./openmp-offload/XSBench -m event -s small -G nuclide
- name: run openmp-offload hash
run: ./openmp-offload/XSBench -m event -s small -G hash
- name: run openmp-offload unionized
run: ./openmp-offload/XSBench -m event -s small -G unionized
10 changes: 5 additions & 5 deletions openmp-offload/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# User Options
#===============================================================================

COMPILER = llvm
OPTIMIZE = yes
DEBUG = no
PROFILE = no
MPI = no
COMPILER ?= llvm
OPTIMIZE ?= yes
DEBUG ?= no
PROFILE ?= no
MPI ?= no

#===============================================================================
# Program name & source code list
Expand Down

0 comments on commit db09020

Please sign in to comment.