Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: gb -> gib, mb -> mib

...

You can now submit an interactive Mathematica job using the SLURM command srun for example, requesting 2GiB of memory:

Code Block
languagebash
titleNon-graphical Mathematica
srun -c 1 --pty -t 06:00:00 -p interactive --mem=2GB2G math


To run Mathematica with full graphics, please first refer to our instructions for how to use X11 applications on O2. There are preliminary steps to make sure your desktop can use X11 forwarding to display graphics from O2.

...

Code Block
languagebash
titleGraphical Mathematica job
srun -c 1 --pty -t 06:00:00 -p interactive --mem=2GB2G mathematica


How to run a batch Mathematica job

...

Code Block
#!/bin/bash
#SBATCH -c 1                               # Request one core
#SBATCH -t 01:00:00                        # Runtime in HH:MM:SS format
#SBATCH -p short                           # Partition to run in
#SBATCH --mem=100                          # Memory total in MBMiB (for all cores)


math -noprompt -run '<<your_mathematica_script.m'

...