Skip to content

Commit

Permalink
Update SBATCH example
Browse files Browse the repository at this point in the history
  • Loading branch information
yulgroper committed May 17, 2024
1 parent 4afaa34 commit 46d7be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Binary file modified doc/speed-manual.pdf
Binary file not shown.
7 changes: 3 additions & 4 deletions doc/speed-manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -342,16 +342,15 @@ \section{Job Management}
TL;DR:
Job instructions in a script start with \verb+#SBATCH+ prefix, for example:
\begin{verbatim}
#SBATCH --account=speed1 --mem=100M -t 600 -J job-name
#SBATCH --mem=100M -t 600 -J <job-name> -A <slurm account>
#SBATCH -p pg --gpus=2 --mail-type=ALL
\end{verbatim}
%
We use \tool{srun} for every complex compute step inside the script.
Use interactive jobs to set up virtual environments, compilation, and debugging.
\tool{salloc} is preferred; allows multiple steps.
\tool{srun} can start interactive jobs as well (see \xs{sect:interactive-jobs}).
Required and common job parameters: job-name (J), mail-type, mem, ntasks (n),
cpus-per-task, account, -p (partition).

Required and common job parameters: memory (mem), time (t), job-name (J), slurm project account (A), partition (p), mail-type, ntasks (n), cpus-per-task.

% ------------------------------------------------------------------------------
\subsection{Getting Started}
Expand Down

0 comments on commit 46d7be9

Please sign in to comment.