![]() |
|
||
| |
|||
|
Mathematica on Biowulf | ||
|
Mathematica is a fully integrated environment for
technical and scientific computing. Mathematica combines numerical and
symbolic computation, visualization, and programming in a single,
flexible interactive system.
The Mathematica system is very broad, and provides a systematic
interface to all sorts of computations, from traditional numeric and
symbolic computation, to visualization, to data format conversion, and
the creation of user interfaces.
Mathematica v 4.2.1 is available on Nimbus, but the later versions are suppported only on Helix and Biowulf. If you plan to use Mathematica for interactive or occasional jobs, Helix is the most appropriate platform. Mathematica jobs are only suited for the Biowulf cluster if you have many similar jobs to perform. There are a total of 6 Mathematica licenses. The PBS Batch system on Biowulf keeps track of these licenses, and will start a Mathematica job only when a license is available. All Mathematica batch jobs must therefore specify the appropriate 'resource' (as in the example below) when the job is submitted, otherwise the batch system may start the job which will immediately exit because there is no license available. The command:
qsub -l nodes=1,math=1 my_job_scriptwill submit the job and tell PBS that a Mathematica license (math=1) is required.
Mathematica Batch Jobs
Running Mathematica interactively without the GUIFor debugging purposes, it may be most convenient to run Mathematica interactively with your Notebook file. This is done by allocating an interactive node, and typing the Mathematica command that you would normally put into your batch script. Sample session:
[user@biowulf mydir]$ qsub -I -l nodes=1,math=1
qsub: waiting for job 591449.biobos to start
qsub: job 591449.biobos ready
p227 job-busy interactive
[user@p227 ~]$ cd /data/user/mydir
[user@p227 mydir]$ math -run "<<rmsdplot.math"
Mathematica 5.0 for Linux
Copyright 1988-2003 Wolfram Research, Inc.
-- Terminal graphics initialized --
RMSD
# Backbone
3# #
# #
# #
# #
2.5# ##
# # #
# # #
2# # #
# # #
# # #
1.5# # #
# ## #
# # ## ### ## ##
# # ## # ## ## #
1# # # ### # ## # ## # #
### ## # ####### ## # ####### ### ## ### #
######### # ### ## # ##### # ## ### # ######## ###
0.5###### # ####### ## # ## # ### ## ### ### #### # ##
# ## ######### ### ###### # ## # #### #
# ## ### #
################################################################### Res. No
50 100
[user@p227 mydir]$ exit
qsub: job 591449.biobos completed
[user@biowulf mydir]
Documentation |
|||
|
This document is available as http://biowulf.nih.gov/apps/mathematica.html Biowulf home page | Helix Systems | NIH
|
|||