NOTICE: FULL O2 Cluster Outage, January 3 - January 10th
O2 will be completely offline for a planned HMS IT data center relocation from Friday, Jan 3, 6:00 PM, through Friday, Jan 10
- on Jan 3 (5:30-6:00 PM): O2 login access will be turned off.
- on Jan 3 (6:00 PM): O2 systems will start being powered off.
This project will relocate existing services, consolidate servers, reduce power consumption, and decommission outdated hardware to improve efficiency, enhance resiliency, and lower costs.
Specifically:
- The O2 Cluster will be completely offline, including O2 Portal.
- All data on O2 will be inaccessible.
- Any jobs still pending when the outage begins will need to be resubmitted after O2 is back online.
- Websites on O2 will be completely offline, including all web content.
More details at: https://harvardmed.atlassian.net/l/cp/1BVpyGqm & https://it.hms.harvard.edu/news/upcoming-data-center-relocation
Using Mathematica on O2
How to run an interactive Mathematica shell
Find out which version of Mathematica is currently available on the cluster using the module command:Â
module spider mathematica
then load the desired version, for example:
module load mathematica/12.1.1
You can now submit an interactive Mathematica job using the SLURM command srun for example, requesting 2GiB of memory:
srun -c 1 --pty -t 06:00:00 -p interactive --mem=2G 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.
After that, you can similarly submit a graphical Mathematica job. The command "mathematica" enables full graphics:
srun -c 1 --pty -t 06:00:00 -p interactive --mem=2G mathematica
How to run a batch Mathematica job
You can run Mathematica scripts as batch jobs using the SLURM command sbatch and a submission script, for example:
module load mathematica/12.1.1 sbatch my_mathematica_job.sh
when my_mathematica_job.sh is a script like
#!/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 MiB (for all cores) math -noprompt -run '<<your_mathematica_script.m'
Please check our other wiki pages to learn more about the scheduler (SLURM), the O2 cluster, the available partitions, etc.