-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Runner Group #746
Closed
+204
−10
Closed
New Runner Group #746
Changes from 38 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
f40b344
ice runner
sbryngelson 6a46d76
bump
sbryngelson f62bd6e
fix
sbryngelson 8623c31
fix!
sbryngelson 1387951
add bench!
sbryngelson 9b82abd
allow for more frontier runners
sbryngelson 1d48baf
make self hosted run?
sbryngelson 88b3478
fix?
sbryngelson d5361fb
try again
sbryngelson d584a6f
fix
sbryngelson 5fe721c
make things better
sbryngelson ca2a3c3
make this thing work and steal from henry while im at it
sbryngelson 7d8f81e
clean
sbryngelson 4064331
Update spelling.yml
sbryngelson e8bd9ab
Merge branch 'master' into runners
sbryngelson 9af4d3b
use mfc.sh init because it is useful
sbryngelson cef04fd
Merge branch 'master' into runners
sbryngelson 4c54d39
clean up
sbryngelson de267d6
Update submit.sh
sbryngelson 2f33f55
add delta runner
sbryngelson 5e1caec
more runner
sbryngelson f00fceb
fix
sbryngelson 32f6b69
Update submit.sh
sbryngelson 468deae
fix me
sbryngelson 5548162
Update submit.sh
sbryngelson be6f1ed
fix?
sbryngelson 64c4626
Merge branch 'runners' of https://github.com/sbryngelson/MFC into run…
sbryngelson e90ffb8
Update submit.sh
sbryngelson 3eb1706
Update test.sh
sbryngelson b97c295
Update test.sh
sbryngelson 1475de1
Update test.sh
sbryngelson a771f6a
Update test.yml
sbryngelson 0b40a72
Update test.sh
sbryngelson cc61d9e
Update build.sh
sbryngelson 66a4faf
Update p_main.f90
sbryngelson cb3f9f2
Update submit.sh
sbryngelson 86df0c9
Update run.py
sbryngelson e4ec936
Merge branch 'master' into runners
sbryngelson c4bf861
Discard changes to .github/workflows/formatting.yml
sbryngelson bf47549
Discard changes to .github/workflows/frontier/test.sh
sbryngelson 92ea3a8
Discard changes to .github/workflows/line-count.yml
sbryngelson f7c9f89
Discard changes to src/pre_process/p_main.f90
sbryngelson 6bd4d3f
Merge branch 'master' into runners
sbryngelson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
usage() { | ||
echo "Usage: $0 [script.sh] [cpu|gpu]" | ||
} | ||
|
||
if [ ! -z "$1" ]; then | ||
sbatch_script_contents=`cat $1` | ||
else | ||
usage | ||
exit 1 | ||
fi | ||
|
||
sbatch_cpu_opts="\ | ||
#SBATCH -p cpu | ||
#SBATCH --account=bdiy-delta-cpu | ||
" | ||
|
||
sbatch_gpu_opts="\ | ||
#SBATCH -p gpuA100x4,gpuA100x8 | ||
#SBATCH --account=bdiy-delta-gpu | ||
#SBATCH --gpus-per-node=4 | ||
" | ||
|
||
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" | ||
|
||
sbatch <<EOT | ||
#!/bin/bash | ||
#SBATCH -Jshb-$job_slug # Job name | ||
#SBATCH -N1 # Number of nodes required | ||
$sbatch_device_opts | ||
#SBATCH -t 03:00:00 # Duration of the job (Ex: 15 mins) | ||
#SBATCH -n 20 | ||
#SBATCH -o$job_slug.out # Combined output and error messages file | ||
#SBATCH --constraint="scratch" | ||
#SBATCH -W # Do not exit until the submitted job terminates. | ||
|
||
set -e | ||
set -x | ||
|
||
cd "\$SLURM_SUBMIT_DIR" | ||
echo "Running in $(pwd):" | ||
|
||
job_slug="$job_slug" | ||
job_device="$2" | ||
|
||
. ./mfc.sh load -c d -m $2 | ||
|
||
$sbatch_script_contents | ||
|
||
EOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
build_opts="" | ||
if [ "$job_device" == "gpu" ]; then | ||
build_opts="--gpu" | ||
fi | ||
|
||
n_build_threads=20 | ||
n_test_threads=20 | ||
|
||
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 | ||
|
||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sw/spack/deltas11-2023-03/apps/linux-rhel8-zen3/nvhpc-24.1/openmpi-4.1.5-zkiklxi/lib/ | ||
./mfc.sh build -j $n_build_threads $build_opts | ||
./mfc.sh test --max-attempts 3 -a -j $n_test_threads $device_opts $build_opts --no-build -- -c delta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
n_ranks=12 | ||
|
||
if [ "$job_device" == "gpu" ]; then | ||
n_ranks=$(nvidia-smi -L | wc -l) # number of GPUs on node | ||
gpu_ids=$(seq -s ' ' 0 $(($n_ranks-1))) # 0,1,2,...,gpu_count-1 | ||
device_opts="--gpu -g $gpu_ids" | ||
fi | ||
|
||
if ["$job_device" == "gpu"]; then | ||
./mfc.sh bench --mem 12 -j $(nproc) -o "$job_slug.yaml" -- -c phoenix $device_opts -n $n_ranks | ||
else | ||
./mfc.sh bench --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c phoenix $device_opts -n $n_ranks | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
usage() { | ||
echo "Usage: $0 [script.sh] [cpu|gpu]" | ||
} | ||
|
||
if [ ! -z "$1" ]; then | ||
sbatch_script_contents=`cat $1` | ||
else | ||
usage | ||
exit 1 | ||
fi | ||
|
||
sbatch_cpu_opts="\ | ||
#SBATCH --ntasks-per-node=20 # Number of cores per node required | ||
" | ||
|
||
sbatch_gpu_opts="\ | ||
#SBATCH --ntasks-per-node=20 # Number of cores per node required | ||
#SBATCH -G H100:2\ | ||
" | ||
|
||
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" | ||
|
||
sbatch <<EOT | ||
#!/bin/bash | ||
#SBATCH -Jshb-$job_slug # Job name | ||
#SBATCH -N1 # Number of nodes required | ||
#SBATCH -n 20 # Number of nodes required | ||
$sbatch_device_opts | ||
#SBATCH -t 03: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 --exclude=atl1-1-02-009-33-0 | ||
|
||
set -e | ||
set -x | ||
|
||
cd "\$SLURM_SUBMIT_DIR" | ||
echo "Running in $(pwd):" | ||
|
||
job_slug="$job_slug" | ||
job_device="$2" | ||
|
||
. ./mfc.sh load -c p -m $2 | ||
|
||
$sbatch_script_contents | ||
|
||
EOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
build_opts="" | ||
if [ "$job_device" == "gpu" ]; then | ||
build_opts="--gpu" | ||
fi | ||
|
||
./mfc.sh test --dry-run -j 8 $build_opts | ||
|
||
n_test_threads=8 | ||
|
||
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 phoenix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,6 @@ jobs: | |
cd $BASE | ||
export MFC_PR=$PR | ||
pwd | ||
./mfc.sh init &> tmp.txt | ||
./mfc.sh count_diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this allowed VERY granular views of what is happening within the toolchain when it is called