Skip to content

Commit

Permalink
Doc update for v4.02.
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckyount committed Feb 18, 2023
1 parent d2769cb commit 00ccfcf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Binary file modified docs/YASK-tutorial.pdf
Binary file not shown.
21 changes: 11 additions & 10 deletions src/kernel/yask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ else
fi
arch=$def_arch

# Default ranks.
# Default nodes.
nnodes=1
if [[ ! -z ${SLURM_JOB_NUM_NODES:+x} ]]; then
nnodes=$SLURM_JOB_NUM_NODES
fi

# Default MPI ranks.
# Try Slurm var, then numactl, then lscpu.
# For latter two, the goal is to count only NUMA nodes with CPUs.
# (Systems with HBM may have NUMA nodes without CPUs.)
Expand All @@ -75,12 +81,6 @@ elif command -v lscpu >/dev/null; then
fi
fi

# Default nodes.
nnodes=1
if [[ ! -z ${SLURM_JOB_NUM_NODES:+x} ]]; then
nnodes=$SLURM_JOB_NUM_NODES
fi

# Other defaults.
pre_cmd=":"
post_cmd=""
Expand Down Expand Up @@ -122,7 +122,7 @@ while true; do
echo "Script options:"
echo " -h"
echo " Print this help."
echo " To see more options from the YASK kernel executable, run the following command:"
echo " To see options from the YASK kernel executable, run the following command:"
echo " $0 -stencil <name> [-arch <name>] -help"
echo " This will run the YASK executable with the '-help' option."
echo " -arch <name>"
Expand All @@ -149,15 +149,16 @@ while true; do
echo " Run YASK executable as an argument to <command>, e.g., 'numactl -N 0'."
echo " -mpi_cmd <command>"
echo " Run YASK executable as an argument to <command>, e.g., 'mpiexec.hydra -n 4'."
echo " If -mpi_cmd is used, the -ranks option is ignored."
echo " If -mpi_cmd is used, the -ranks option is used only for computing the"
echo " default number of OpenMP threads to use."
echo " If -mpi_cmd and -exe_prefix are both specified, this one is used first."
echo " -ranks <N>"
echo " Run the YASK executable on <N> MPI ranks."
echo " Shortcut for the following option if <N> > 1:"
echo " -mpi_cmd 'mpirun -np <N>'"
echo " If a different MPI command is needed, use -mpi_cmd <command> explicitly."
echo " If the env var SLURM_NTASKS is set, the default is its value."
echo " Otherwise, the default is based on the number of NUMA nodes, assuming a one-node run."
echo " Otherwise, the default is based on the number of NUMA nodes."
echo " The current default is $nranks."
echo " -nodes <N>"
echo " Set the number of nodes."
Expand Down

0 comments on commit 00ccfcf

Please sign in to comment.