Using MATLAB on CQLS HPC
Introduction to MATLAB on the CQLS infrastructure
Users that are looking to work with MathWorks MATLAB software are able to access
it at the command line. First off, MATLAB will not run on the front end machines
files.cqls.oregonstate.edu. Users are able to
run the software stack on the processing machines using the
when accessing MATLAB via the command line.
The CQLS has two versions R2022b and R2018a currently licensed for command line and batch usage as well as the MATLAB Distributed Computing Server (MDCS). Finally MATLAB only runs on the x86_64 based architecture and will not run on the IBM servers.
By default the
R2022b is set into the main PATH variable for all users.
Users can access the binaries directly using the following paths for other versions.
Users can add the MATLAB folder to their path to e.g. change the default version:
Add the above lines to your
~/.bashrc, respectively, to make the
changes persistent across future logins.
Submitting MATLAB jobs to the infrastructure
Here is an example of running MATLAB as a batch job where it will multiply 3 times 4 and exit then log the run in a log file. This example the user has submit a job to the cluster through the queuing system.
Note: For more information regarding the queuing system, please see these additional posts:
Using matlab in batch mode on a compute node
Note: you must be on a checked out node, e.g.
qrsh for this
mode to work.
Here is an example of checking out a node and using MATLAB at the command line:
Same example as from before just working directly on the node in batch and just
run the command mode, e.g.
Using matlab in interactive mode
Here I just load matlab at the command line on the checked out node and use it interactively.