• eResearch
    • Collaborative Technologies
      • ARDC (Australian Research Data Commons)
      • ARDC Nectar Research Cloud
      • Australian Access Federation
      • QRIScloud
      • Video Collaboration
    • Data Management
      • Research Data Management Plans
    • Data Services
      • Australian and International Data Portals
      • CQUni Research Data Storage Options
      • CQUniversity Research Data Storage
      • GEOSCIENCE DATA PORTALS
    • eResearch and Security: MFA and CyberSafety
      • Encrypting Data on Portable Devices
    • High Performance Computing
      • The History of CQU’s HPC Facilities
        • Ada Lovelace Cluster (New HPC)
        • Marie Curie Cluster (Current HPC)
        • Einstein Cluster (Decommissioned)
        • Isaac Newton HPC Facility (Decommissioned)
      • HPC User Guides and FAQs
        • Basics of working on the HPC
        • Getting started on CQUniversity’s Ada Lovelace HPC System
        • Graphical Connection to the HPC System
        • Compiling Programs (and using the optimization flags)
        • Connecting to the Marie Curie Cluster
        • Finding Installed Software
        • Frequently Asked Questions
        • Graphical connection HPC via Open On Demand
        • HPC Job Scheduler
        • HPC Trouble Shooting
        • Machine and Deep Learning
        • PBS Commands
        • PBS to Slurm Command tables (HPC Scheduler)
        • Running LLM’s on the HPC system
        • Running Python on HPC
        • Simple Unix Commands
        • Software Module Information
        • Submitting an Interactive Job
        • Transferring Files to the HPC System
        • Transferring Files to the HPC System (Ada)
        • Using Abaqus
        • Using ANSYS (Fluent) on the HPC System
        • Using APSIM
        • Using HPC Scheduler on Ada Lovelace Cluster
        • Using MATLAB
        • Using R
        • Virtualisation and Containers
      • HPC Community
      • HPC Related Links
      • HPC Sample Code Scripts
        • MATLAB Sample Scripts
        • Multiple Job Submission
        • Multiple Run Job Submission
        • PBS Job Array Submission
        • R Sample Scripts
        • Sample PBS Submission Script
        • Sample Slurm Submission Script
      • HPC Software
        • Mathematica Sample Scripts
    • Research Software
    • Scholarly Communication
    • Survey Tools
    • Training
      • QCIF – Queensland Cyber Infrastructure Foundation
      • Teaching Lab Skills for Scientific Computing

eResearch

Mathematica Sample Scripts

In order to submit a job to the cluster you need to write a script file similar to the one below. Lines beginning with “##” represents comments. Replace the username in the directory structure to your username and the email address to your email address. Change the Mathematica Script File Name to the name of the Mathematica file that you want to be executed on the cluster.

You may replace every occurrence of the file name “Mathematica-Job1” in the file with your own choice of file name.

Example Mathematica PBS Submission Script (/apps/samples/PBS/mathematica.pbs)

###### Select resources #####
#PBS -N Math-Job1
#PBS -l ncpus=1
#PBS -l mem=4g
#PBS -l walltime=100:00:00

#### Output File #####
#PBS -o /home/username/DirectoryName/Mathematica-Job1.out

#### Error File #####
#PBS -e /home/username/DirectoryName/Mathematica-Job1.err

##### Queue #####
#pbs -q workq

##### Mail Options #####
#PBS -m abe
#PBS -M EmailAddress@cqu.edu.au

##### Change to current working directory #####
cd /home/username/DirectoryName

##### Execute Program #####
. /etc/profile.d/modules.sh
module load x11
export DISPLAY=`cd /home/username/.vnc ; ls einstein\:?.pid | awk -F. '{print $1}'`
math < MathematicaScriptFileName.m

To submit a job, simply execute the command:

qsub [pbs_script_file]

Handy commands, to check if your job is running, queued or completed is by using one of the following commands:

qstat -an

qusers

myjobs

 

 

Support

eresearch@cqu.edu.au

tasac@cqu.edu.au OR 1300 666 620

Hacky Hour (3pm – 4pm every Tuesday)

High Performance Computing Teams site