Skip to content

Commit 0de4371

Browse files
committed
added a docker_workflow.yml
1 parent 9d59f47 commit 0de4371

File tree

2 files changed

+47
-6
lines changed

2 files changed

+47
-6
lines changed

.github/workflows/docker_workflow.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-FileCopyrightText: Intel Corporation
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
name: Docker
6+
7+
on:
8+
push:
9+
pull_request:
10+
workflow_dispatch:
11+
# 8am UTC is 12am PST, 1am PDT
12+
schedule:
13+
- cron: '0 8 * * *'
14+
15+
jobs:
16+
run_examples:
17+
name: Run examples
18+
runs-on: ubuntu-latest
19+
container:
20+
image: intel/oneapi:latest
21+
env:
22+
CXX: icpx
23+
CC: icx
24+
volumes:
25+
- ${{ github.workspace }}:/src
26+
steps:
27+
- name: Check out
28+
uses: actions/checkout@v3
29+
- name: Setup cmake
30+
uses: jwlawson/[email protected]
31+
- name: Build examples
32+
run: |
33+
cmake -B build -DENABLE_SYCL=on
34+
cmake --build build -j
35+
- name: Run examples
36+
run: |
37+
mpirun -n 2 ./build/src/example1
38+
mpirun -n 2 ./build/src/example2
39+
mpirun -n 2 ./build/src/example3
40+
- name: Run pre-commit
41+
uses: pre-commit/[email protected]

scripts/daily.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#
55
# SPDX-License-Identifier: BSD-3-Clause
66

7-
source /opt/intel/oneapi/setvars.sh
8-
set -e
9-
hostname
7+
# source /opt/intel/oneapi/setvars.sh
8+
# set -e
9+
# hostname
1010

11-
# SLURM/MPI integration is broken
12-
unset SLURM_TASKS_PER_NODE
13-
unset SLURM_JOBID
11+
# # SLURM/MPI integration is broken
12+
# unset SLURM_TASKS_PER_NODE
13+
# unset SLURM_JOBID
1414

1515
cmake -B build -DENABLE_SYCL=on
1616
cmake --build build -j

0 commit comments

Comments
 (0)