Preparation
Before using Mathematica on O2, the following commands (or equivalent) must be run to set up a license file for your account:
Code Block |
---|
mkdir -p $HOME/.Mathematica/Licensing
echo '!license' > $HOME/.Mathematica/Licensing/mathpass |
How to run an interactive Mathematica shell
After setting up your license file you will be able to load a Mathematica module and start an interactive job. Find out which version of Mathematica is currently available on the cluster with
...
Code Block | ||
---|---|---|
| ||
module load mathematica/1112.21.01 |
You can now submit an interactive Mathematica job using the SLURM command srun for example:
...
Code Block | ||
---|---|---|
| ||
module load mathematica/1112.21.01 sbatch my_mathematica_job.sh |
...