MATLAB on Orca
There are two ways to run MATLAB live on Sharcnet. The first is through orca's development nodes, and the second is through the visualization machines. Before continuing you must have a valid Matlab account and have set-up Matlab on sharcnet (Directions). As described in the directions link, Matlab scripts may also be submitted as jobs but this will not allow any interaction with the code.
Development Nodes
- log into orca with X-forwarding (ssh -X orca.sharcnet.ca)
- log into one of the four development nodes with X-forwarding (ssh -X orca-dev1)
- run Matlab (./uwmatlab)
Some of the development nodes can get quite busy so it is a good idea to check the usage before logging in. One way to do this is to use the command
- pdsh -w orc-dev[1-4] uptime | awk '{print $1,$NF}' | sort -n -k 2
which shows the number of processors being used on each node over the last 15 minutes. A value less than 4 will allow commands in Matlab to run at a reasasonable pace, anything over 10 is unbearably slow. See Documentation for more information.
Visualization Machines
- log into a visualization machine with X-forwarding (ssh -X viz2-uwaterloo.sharcnet.ca)
- Only machines 2 and 3 have Matlab available.
- run Matlab with /opt/sharcnet/testing/matlab/R2014a/bin/matlab
- It is suggested to put this command in a file in your home directory just like the uwmatlab file.
If your data is not in your home or work directory you can mount scratch from other clusters onto the workstation. For example, to mount your /scratch directory from orca you should execute:
- mkdir /scratch/$USER/orca
- sshfs $USER@orca.sharcnet.ca:/scratch/$USER /scratch/$USER/orca
- mkdir /scratch/$USER/orca
See visualization workstations for more information.