Wolfram's Mathematica is a complete tool to perform modeling, simulation, visualization, development, documentation, and deployment. The features include:
Compute and Visualize: Numerics of any precision, symbolics, or visualization--Mathematica is the ultimate computational tool, with system-wide technology to ensure reliability, ease-of-use, and performance. Use Mathematica computation directly, as the engine in an infrastructure, or integrated into a standalone application.
Develop: Develop applets, applications, documents, or infrastructure components and systems using Mathematica's unique mix of capabilities--achieving record times on large projects or making small developments practical at all.
Document and deployment: Mathematica offers a wide range of innovative deployment options based on the Mathematica notebook. Whether your deliverables are interactive documents, applications, infrastructure components, or presentations,Mathematica notebooks are the complete solution--deployable locally or across a network.
All the available versions of MATHEMATICA for use can be viewed by issuing the following command. This applies for other applications as well.
The default version is identified by "(default)" behind the module name and can be loaded as:
The other versions of MATHEMATICA can be loaded as:
Graphical Interface: Since you need to set the math font locally, probably you can use only linux box or cygwin to enable Mathematica on the cluster.
Load the mathematica module
Download math fonts to your local machine. The location of the Mathematica fonts is
Once you have it in your home directory on your local terminal, you need to execute the following commands:
Request a compute Node:
After it logs you into one of the comp nodes or at login, type:
module load mathematica
kernel or command line only:You can run Mathematica in Command Mode (no need to have mathematica fonts installed). Request the compute node and run mathematica as in Graphical User Interface.
Prepare a job script "job.pbs" like the one below, where mathtest.m is a mathematica script file also included below.
Submit the job:
Check the result in "t.out"
Parallel Batch Job
Mathematica will work with local node kernels to spawn kernels on each processor with OpenMP procedure, so we can launch up to 12 kernels for each job. You have to request enough processors in your PBS script to cover your usage.
Prepare a job script (parjob.pbs) like the one below, where parallel.m is a mathematica script file included below as well.
(Important Note: set the index value of LaunchKernels[n] equal to ppn value (nodes=1:ppn=n) in PBS script)
Submit the job:
Check the result in "test.out"
Demo of mathematica: http://www.youtube.com/watch?v=ilm14HYsl6M
Programming CUDA with Mathematica: https://docs.google.com/a/case.edu/open?id=0By0GTaYFOIhdMmZlNTdhNzktNWQzYy00ZGVhLTgwYzMtZWNjODQwYzQ3OGQ1