Skip to content
Draft

run #1100

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 0 additions & 124 deletions .github/workflows/bench.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/delta/submit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/bin/bash

set -e

usage() {
echo "Usage: $0 [script.sh] [cpu|gpu] [none|acc|omp]"
}

if [ ! -z "$1" ]; then
sbatch_script_contents=`cat $1`
else
usage
exit 1
fi

sbatch_cpu_opts="\
#SBATCH -p cpu # partition
#SBATCH --ntasks-per-node=24 # Number of cores per node required
#SBATCH --account=bdiy-delta-cpu # charge account
"

sbatch_gpu_opts="\
#SBATCH --account=bdiy-delta-gpu
#SBATCH -p gpu
#SBATCH --ntasks-per-node=4 # Number of cores per node required
#SBATCH -G2\
"

if [ "$2" = "cpu" ]; then
sbatch_device_opts="$sbatch_cpu_opts"
elif [ "$2" = "gpu" ]; then
sbatch_device_opts="$sbatch_gpu_opts"
else
usage
exit 1
fi

job_slug="`basename "$1" | sed 's/\.sh$//' | sed 's/[^a-zA-Z0-9]/-/g'`-$2-$3"

sbatch <<EOT
#!/bin/bash
#SBATCH -Jshb-$job_slug # Job name
#SBATCH -N1 # Number of nodes required
$sbatch_device_opts
#SBATCH -t 01:00:00 # Duration of the job (Ex: 15 mins)
#SBATCH -o$job_slug.out # Combined output and error messages file
#SBATCH -W # Do not exit until the submitted job terminates.
#SBATCH --exclusive # Do not exit until the submitted job terminates.

set -e
set -x

cd "\$SLURM_SUBMIT_DIR"
echo "Running in $(pwd):"

echo "Job started on nodes: $SLURM_JOB_NODELIST"
echo "Number of tasks requested: $SLURM_NTASKS"
echo "CPUs per task requested: $SLURM_CPUS_PER_TASK"
echo "Total allocated CPU cores: $(($SLURM_NTASKS * $SLURM_CPUS_PER_TASK))"
echo "Cores available on this specific node: $SLURM_CPUS_ON_NODE"

job_slug="$job_slug"
job_device="$2"
job_interface="$3"

. ./mfc.sh load -c d -m $2

$sbatch_script_contents

EOT
25 changes: 25 additions & 0 deletions .github/workflows/delta/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

build_opts=""
if [ "$job_device" = "gpu" ]; then
build_opts="--gpu"
if [ "$job_interface" = "omp" ]; then
build_opts+=" mp"
elif [ "$job_interface" = "acc" ]; then
build_opts+=" acc"
fi
fi

./mfc.sh test --dry-run -j 16 $build_opts

n_test_threads=16

if [ "$job_device" = "gpu" ]; then
gpu_count=$(nvidia-smi -L | wc -l) # number of GPUs on node
gpu_ids=$(seq -s ' ' 0 $(($gpu_count-1))) # 0,1,2,...,gpu_count-1
device_opts="-g $gpu_ids"
n_test_threads=`expr $gpu_count \* 2`
fi

./mfc.sh test --max-attempts 3 -a -j $n_test_threads $device_opts -- -c delta

19 changes: 0 additions & 19 deletions .github/workflows/formatting.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/lint-source.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lint-toolchain.yml

This file was deleted.

Loading
Loading