-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from university-of-york/quickFix
Quick fix
- Loading branch information
Showing
2 changed files
with
9 additions
and
12 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,36 +8,33 @@ VOX-FE | |
$ module load module load {MOD_VOXFE} | ||
An example job script can be found here. This script takes 40 CPUs, 1 GB of memory and 2 hours. Remember to update the account code and email address provided to ``slurm`` to your own details. | ||
An example job script can be found here. This script described using a whole node with 96 cores exclusively for two hours. Remember to update the account code and email address provided to ``slurm`` to your own details and be sure to substitute ``Script.txt`` with the path to your script. | ||
|
||
.. code-block:: bash | ||
{SHEBANG} | ||
#SBATCH --job-name=VOX-FE_CPU_example # Job name | ||
#SBATCH --mail-type=BEGIN,END,FAIL # Mail events (NONE, BEGIN, END, FAIL, ALL) | ||
#SBATCH [email protected] # Where to send mail to | ||
#SBATCH --ntasks=40 | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks-per-node=40 | ||
#SBATCH --ntasks-per-socket=20 | ||
#SBATCH --mem-per-cpu=1gb | ||
#SBATCH --time=02:00:00 | ||
#SBATCH --output=logs/VOX-FE_CPU_example-node-%j.log | ||
#SBATCH --nodes=1 # Number of nodes | ||
#SBATCH --exclusive # Exclusively use the whole node | ||
#SBATCH --time=02:00:00 # Time of the job in HH:MM:SS | ||
#SBATCH --output=VOX-FE_CPU_example-%j.log # Output file | ||
#SBATCH --account=dept-proj-year # Project account to use | ||
# Abort if any command fails | ||
set -e | ||
module purge # purge any loaded modules | ||
module load OpenMPI/4.1.4-GCC-12.2.0 | ||
module load module load {MOD_VOXFE} | ||
echo "Running small-vox-fe on $SLURM_NTASKS CPU cores" | ||
echo "Running small-vox-fe on $SLURM_JOB_CPUS_PER_NODE CPU cores" | ||
echo "Nodes allocated to job: " $SLURM_JOB_NUM_NODES "(" $SLURM_JOB_NODELIST ")" | ||
echo | ||
date | ||
mpirun -np $SLURM_NTASKS PARA_BMU Script.txt | ||
mpirun -np $SLURM_JOB_CPUS_PER_NODE voxfe_solver Script.txt | ||
date | ||
.. note:: | ||
|
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