* run command, `srun` serves as Slurm's native way of executing MPI-enabled applications, `hostname` is used in the example just for sake of simplicity
* run command, `srun` serves as Slurm's native way of executing MPI-enabled applications, `hostname` is used in the example just for sake of simplicity
!!! tip "Excluding Specific Nodes"
Use `#SBATCH --exclude=<node_name_list>` directive to exclude specific nodes from your job, e.g.: `#SBATCH --exclude=cn001,cn002,cn003`.
Submit directory will be used as working directory for submitted job,
Submit directory will be used as working directory for submitted job,
so there is no need to change directory in the job script.
so there is no need to change directory in the job script.
Alternatively you can specify job working directory using the sbatch `--chdir` (or shortly `-D`) option.
Alternatively you can specify job working directory using the sbatch `--chdir` (or shortly `-D`) option.