You are here: Home Help/User Support Parallel Computing in the CAE Lab Cluster Job Example: Maple

Cluster Job Example: Maple


Long-running Maple jobs should be put in the queue. If you have a Maple Worksheet (.mws extension) from the graphical versions of Maple, you should re-save it as a Maple input file (.mpl extension) before submitting your job. Maple jobs cannot currently be parallelized, so make sure you include the "#PBS -l nodes=1:ppn=1" line in your qsub command file so that you only allocate one processor.

Sample input file (findroots.mpl)

# Solve a simple polynomial equation

# Save the results into a Maple input file for later post-processing.
save myroots, "myroots.mpl";

Sample qsub command file (

# Example Maple job

# Request 1 node with 1 free CPU core, since Maple can't parallelize.
#PBS -l nodes=1:ppn=1

# Reserve 24 hours on selected cores
#PBS -l walltime=24:00:00

# Give the job a descriptive name for emails (name must start with a letter)
#PBS -N Finding_roots

# Send mail to address given below when the job begins, ends normally, or aborts
#PBS -m bea

maple -q findroots.mpl