Mathematica
To submit Mathematica jobs to compute nodes using SLURM, the Mathematica command to be executed must be contained in a single .m
script. The .m
script will then be passed to themath
command in a batch script. Please note that, currently, we support only in a batch mode, not an interactive mode.
It is also important to note that we currently have 2 licenses of Mathematica for a cluster. We then limit the total job to run to 2. You must choose qos=cu_math
and partition=math
in your SLURM script.
An example of math-1core.m
,
And here is an example of the SLURM script (example7a.slurm
),
Job submission is done in the same way as other SLURM jobs, e.g. usingsbatch example7a.slurm
.
Multiple CPUs
For multiple CPUs in a machine, Mathematica can be run in parallel using the built in Parallel commands or by utilizing the parallel API. Note that, the Parallel Mathematica jobs are limited to one node, but can utilize all CPU cores on the node. You can use 16 CPUs maximum.
Here we request and use 16 cores:
and an example of submission script,
Using Lightweight grid mathematica
Under construction.
Last updated