-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.22 KB
/
exercises.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test exercises
run-name: Test exercises
on: [push]
jobs:
build_kokkos:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install Kokkos
run: |
git clone https://github.com/kokkos/kokkos.git
cd kokkos
git checkout develop
mkdir build_openmp
mkdir install_openmp
cmake -B build_openmp -DCMAKE_INSTALL_PREFIX=${PWD}/install_openmp -DKokkos_ENABLE_OPENMP=ON ./
make install -C build_openmp
- name: Upload Kokkos artifact
uses: actions/upload-artifact@v4
with:
path: kokkos/install_openmp
build_exercises:
runs-on: ubuntu-latest
needs: build_kokkos
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Download Kokkos artifact
uses: actions/download-artifact@v4
with:
path: kokkos/install_openmp
- name: Compile 02_first_program
run: |
cd exercises/02_first_program/solution/
cmake -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/kokkos/install_openmp/ ./
make
export OMP_NUM_THREADS=4
./first_program