-
Notifications
You must be signed in to change notification settings - Fork 201
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
Summit: no -n
in jsrun
#1114
Summit: no -n
in jsrun
#1114
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2019 Maxence Thevenet | ||
# Copyright 2019-2020 Maxence Thevenet, Axel Huebl | ||
# | ||
# This file is part of WarpX. | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
# | ||
# Refs.: | ||
# https://jsrunvisualizer.olcf.ornl.gov/?s4f0o11n6c7g1r11d1b1l0= | ||
# https://docs.olcf.ornl.gov/systems/summit_user_guide.html#cuda-aware-mpi | ||
|
||
#BSUB -P <allocation ID> | ||
#BSUB -W 00:10 | ||
#BSUB -nnodes 2 | ||
#BSUB -alloc_flags smt4 | ||
#BSUB -J WarpX | ||
#BSUB -o WarpXo.%J | ||
#BSUB -e WarpXe.%J | ||
|
||
module load gcc | ||
module load cuda | ||
|
||
omp=1 | ||
export OMP_NUM_THREADS=${omp} | ||
|
||
num_nodes=$(( $(printf '%s\n' ${LSB_HOSTS} | sort -u | wc -l) - 1 )) | ||
jsrun -n ${num_nodes} -a 6 -g 6 -c 6 --bind=packed:${omp} <path/to/executable> <input file> > output.txt | ||
export OMP_NUM_THREADS=1 | ||
jsrun -r 6 -a 1 -g 1 -c 7 -l GPU-CPU -d packed -b rs --smpiargs="-gpu" <path/to/executable> <input file> > output.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried at https://jsrunvisualizer.olcf.ornl.gov/?s4f0o01n6c7g1r11d1b1l0= The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think that's just a limitation of the visualizer. |
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.
Would it be useful to add a comment/NOTE/TODO that explains that we are setting
OMP_NUM_THREADS
because "(note: needs export OMP_NUM_THREADS=1 for the way we #ifdef OpenMP currently...)".In case someone decides to ramp up OMP_NUM_THREADS without knowing what in the code will not work?