module load MathematicaThis will setup the environment of the latest version of Mathematica (currently version 9.0.1). For more information about the modules, please visit the Modules page.
Command Line ModeTo run in command line just type:
mathThis will start a Mathematica kernel inside the current shell. Here you can enter input and the kernel will evaluate the expression
To execute Mathematica scripts directly you can use the following command:
math -script< myscript.mAnother option will be to just redirect the input to the math command:
math -script< myscript.mFor more information, please visit the Mathematica math page.
GUI ModeTo run in GUI mode you can use the following command:
MathematicaWhen running GUI mode your local computer needs to be able to display the X commands. See Accessing TAMU Supercomputing Machines for more information.
NOTE: Please be advised that GUI applications might respond considerably slower when running remotely due the large amount of network communication. This is especially true when connecting off campus.
#PBS -l nodes=1:ppn=1 #PBS -l walltime=01:50:00 #PBS -l mem=22gb #PBS -N MathematicaJob #PBS -m be #PBS -j oe #PBS -V cd $PBS_O_WORKDIR module load Mathematica math < myscript.mFor your job you will most likely adjust the job requirements, such as walltime, memory, etc. If you want to run a parallel job you will need to specify nodes=X:ppn=Y to values that fit your needs. In that case, please read the "Parallel Computations" section below carefully. Parallel Computing Guide.
Unfortunately Mathematica does not support the cluster management tool used on eos (TORQUE) and therefore there is no transparent and easy way to launch kernels. For your convenience the Supercomputing facility created a package to make it as straightforward as possible to launch additional kernels. In your program replace the standard command to launch kernels:
LaunchKernelswith the following command:
Needs["EosUtils`EosKernels`] : : LaunchEosKernelsThe LaunchEosKernels command will launch as many kernels as requested in the PBS job file. If LaunchEosKernels is called in interactive mode it will launch 3 kernels locally (due to 4 procesor limit in interactive mode). Additional functionality to launch kernels can be added later per user request.