-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (29 loc) · 1.01 KB
/
cuda-farm.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
name: CUDA CI farm
# disable this one by naming an invalid branch
on:
push:
branches: [ cissie_cuda ]
pull_request:
branches: [ cissie_cuda ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-n-run-SubeventCUDAExample:
# the label of your runner
runs-on: [self-hosted, gpu, Linux, X64]
steps:
- uses: actions/checkout@v3
# - name: print path
# run: |
# echo `pwd` # /w/epsci-sciwork18/xmei/actions-runner/projects/JANA2/JANA2
# echo $GITHUB_WORKSPACE # /w/epsci-sciwork18/xmei/actions-runner/projects/JANA2/JANA2
- name: print hostname
run: |
hostname
- name: launch farm job through slurm script
run: |
export JID=`sbatch --gres gpu:A100:1 $GITHUB_WORKSPACE/scripts/ci/submit_SubeventCUDAExample.slurm | awk '{print $4}'`
sleep 30
tail -f slurm_${JID}.out & \
sleep 240 # manually exit by sleep 4 minutes