Computational Cluster Programs

How to Run Matlab on ATS-Hosted Clusters

You can use any text editor to make the appropriate input files for Matlab.

How to Run Matlab in Batch

To Run Matlab from the UCLA Grid Portal

To run Matlab in batch from the UCLA Grid Portal click on the Job Services tab. Then click on Applications. If you have access to a cluster that has Matlab installed, you can run it on that cluster. Otherwise, you can always run Matlab as a pool application. Enter the name of your Matlab input files in the form that you have to fill out to run an Matlab job.

To Run Matlab from the Cluster Head Node using the Queue Scripts

The easiest way to run Matlab in batch from the head node is to use the queue scripts. See Running a Batch Job on an ATS-Hosted Cluster for a discussion of the queue scripts and how they are used.

The following queue scripts are available for Matlab:

matlab.q
Runs in serial.

To Run Matlab from the Cluster Head Node Using SGE Comands

See Running a Batch Job on an ATS-Hosted Cluster for guidelines to follow to create the required SGE command file. Alternatively, you could create an SGE command file with one of the queue scripts listed above. After saving the command file, you can modify it if necessary. See Commonly-Used SGE Commands for a list of the most commonly used SGE commands.

How to Run Matlab Interactively

To Run Matlab Interactively from the UCLA Grid Portal

To run Matlab interactively from the UCLA Grid Portal click on the Interactive tab. If you have access to a cluster that has Matlab installed, you will see Matlab listed under the cluster's name. Set your web browser to allow pop-up windows from the grid portal. Click on Matlab under the name of the cluster. A pop-up window will appear with the Matlab GUI inside of it.

To Run Matlab Interactively from a Cluster Interactive Node

To run Matlab interactively you must first connect to the cluster head node with X11 forwarding enabled. Then ssh to one of the interactive nodes also with X11 forwarding enabled. Enter:

matlab

To Run Matlab Interactively from a Cluster Head Node

To run Matlab interactively you must first connect to the cluster head node with X11 forwarding enabled. Enter:

matlab

Matlab will run under qrsh on some eligible node assigned by the Sun Grid Engine.