Skip to content

Commit dfa488c

Browse files
committed
gh worker
1 parent f18eb3c commit dfa488c

2 files changed

Lines changed: 7 additions & 48 deletions

File tree

.github/workflows/juwels-runner.yml

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
run-command:
1010
runs-on: [self-hosted, linux] # adjust labels if you used custom ones
1111
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
12+
# - name: Checkout code
13+
# uses: actions/checkout@v4
1414

1515
# - name: Run your HPC command
1616
# run: |
@@ -21,46 +21,7 @@ jobs:
2121
# sbatch test.sh
2222
- name: Submit and monitor SLURM job
2323
run: |
24-
## set -e
25-
26-
ml --force purge
27-
ml Stages/2024 GCC OpenMPI CUDA/12 cuDNN MPI-settings/CUDA
28-
ml Python CMake HDF5 PnetCDF libaio mpi4py
29-
ml X11/20230603 OpenGL/2023a
30-
31-
32-
module list
33-
34-
35-
echo "Submitting job..."
36-
cd /p/home/jusers/krochak1/juwels/cslfse/pulsar-plugin/ || exit
37-
JOBID=$(sbatch --parsable test.sh)
38-
echo "Submitted as $JOBID"
39-
40-
echo "Waiting for job to complete..."
41-
while squeue -j "$JOBID" 2>/dev/null | grep -q "$JOBID"; do
42-
sleep 10
43-
done
44-
45-
echo "Job $JOBID appears to have finished."
46-
47-
# Optional: wait for output file to appear if your system writes it after job end
48-
OUTFILE="output.${JOBID}.out"
49-
for _ in {1..10}; do
50-
if [[ -f $OUTFILE ]]; then break; fi
51-
echo "Waiting for output file $OUTFILE..."
52-
sleep 5
53-
done
54-
55-
if [[ ! -f $OUTFILE ]]; then
56-
echo "ERROR: Output file $OUTFILE not found."
57-
exit 1
58-
fi
59-
60-
echo "Output file found. Checking for success..."
61-
if grep -q "FAILED" "$OUTFILE"; then
62-
echo "Job output indicates failure."
63-
exit 1
64-
else
65-
echo "Job appears successful."
66-
fi
24+
hostname
25+
whoami
26+
cd /p/home/jusers/krochak1/juwels/cslfse/pulsar-plugin/
27+
sbatch test.sh

test.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
## general configuration of the job
44
#SBATCH --job-name=itwinai-radio-astronomy
5-
#SBATCH --account=slfse
5+
###SBATCH --account=slfse
66
#SBATCH --partition=devel
77
#SBATCH --output=/p/project1/intertwin/krochak1/pulsar-plugin/output.%j.out
88
#SBATCH --error=/p/project1/intertwin/krochak1/pulsar-plugin/error.%j.out
99
#SBATCH --time=00:10:00
1010
#SBATCH --nodes=1
1111
#SBATCH --ntasks-per-node=1
1212
#SBATCH --cpus-per-task=48
13-
#SBATCH --exclusive
14-
#SBATCH --get-user-env
1513

1614
# set -e
1715
if [ -f /etc/bashrc ]; then

0 commit comments

Comments
 (0)