Additional Notes: Running Matlab on Sharcnet
- When logging on, you need to select a server to logon to. A
list of sharcnet servers can be found here .
- Not all sharcnet servers have Matlab. One server that does
have matlab available is whale:   whale.sharcnet.ca
- All files program (.m) files used by matlab should be uploaded
to the /username/scratch/ directory on a particular sharcnet server
(probably whale).
- All the .m files used also have to be listed, along with their
paths, on the file dependencies in the file from the client
(i.e. your) computer.
- Note that the remoteDataLocation command specifies the
directory on sharnet to which output should be saved and not the
directory where you place the .m files. The .m files need to be placed
in the scratch directory even when
- All the files on sharnet should be written as function. The
only file that does not have to be written as a function is the file
on the client (your computer), This file is the one that communicates
with sharnet. It will specifies which function to run, with which
parameters.
- It is a good idea to test the code on your computer first
before running it on sharcnet. To test parallel computing on your
computer use matlabpool (e.g. include "matlabpool local 2" in your
program or in the command window.)
- Sharnet's instructions apply to a windows client, but can be followed
with a few changes on linux (and probably MAC). Some of the changes for a linux client include:
- The section "Install Putty on Client Host" should be skipped.
- "Upload the SSH public key to SHARCNET cluster" is still need, though details may differ slightly. You need to set up public-private ssh-key combination and put the public key in your .ssh directory on sharcnet. If the key has a passprhase it should be activated using ssh-add before sending Matlab jobs.
- "MATLAB Client Configuration" Follow the posted instructions, except copy the files from nonshared/unix rather than nonshared/windows.
That is, copy files from
MATLAB/toolbox/distcomp/examples/integration/lsf/nonshared/unix/
to
/usr/local/bin/MATLAB/toolbox/local/