Mathematica

General

Wharton has a site license server for Mathematica. Please contact your Academic Distributed Representative for access.

Mathematica in Wharton’s HPC Environment

Interactive Mathematica Sessions

  • Graphical (requires X Forwarding): qrsh mathematica
  • Textual: qrsh math

Submitting a Mathematica Job

Create Mathematica Commands File

Create a .m file with your commands, for example:

Create Mathematica Job Script

Create a .sh file with at least the following contents:

Submit Mathematica Job

More information: HPCC Job Management

Parallel Mathematica on the HPCC

Imbox_notice Remember HPCC Job Management with job limits for job queues

For code that supports parallelization, add the following commands:

You will also need to add the following code either to your ~/.bashrc file (if using interactive Mathematica), or in your job submission script (if you’re submitting with ‘qsub’) to use parallel Mathematica:

Plotting Functionality on the HPCC

Sample commands and job script for plotting via Mathematica.

Commands file:

Job script: