Skip to content

Commit 4c4dd17

Browse files
authored
added the devcloud workflow (#2)
* added a daily.sh script * added a daily workflow that runs on the devcloud
1 parent bb0e972 commit 4c4dd17

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/daily.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPDX-FileCopyrightText: Intel Corporation
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
name: Daily
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
pull_request:
13+
workflow_dispatch:
14+
# 8am UTC is 12am PST, 1am PDT
15+
schedule:
16+
- cron: '0 8 * * *'
17+
18+
jobs:
19+
checks:
20+
runs-on: devcloud
21+
env:
22+
CXX: icpx
23+
CC: icx
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Checks
27+
uses: pre-commit/[email protected]
28+
- name: Build & Run
29+
run: srun -p pvc-shared scripts/daily.sh

scripts/daily.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#! /bin/bash
2+
3+
# SPDX-FileCopyrightText: Intel Corporation
4+
#
5+
# SPDX-License-Identifier: BSD-3-Clause
6+
7+
source /opt/intel/oneapi/setvars.sh
8+
set -e
9+
hostname
10+
11+
# SLURM/MPI integration is broken
12+
unset SLURM_TASKS_PER_NODE
13+
unset SLURM_JOBID
14+
15+
cmake -B build -DENABLE_SYCL=on
16+
cmake --build build -j
17+
18+
mpirun -n 2 ./build/src/example1
19+
mpirun -n 2 ./build/src/example2
20+
mpirun -n 2 ./build/src/example3

0 commit comments

Comments
 (0)