O2Portal - MATLAB App

This app will start a MATLAB standard desktop on one of the O2 cluster compute nodes. This app includes contains the full set of MATLAB desktop toolboxes. However, it is not optimized as well as the O2Portal -MATLAB Proxy Application; that proxy application should be used when possible.

After clicking on the HMS RC MATLAB application you should see the page:

where you can select several parameters for your MATLAB job:

Slurm Account:

This is the Slurm Account associated with your Slurm User. You can find your Slurm account by running the command sshare -U -u $USER from a shell within the O2 cluster.

Partition:

This is the partition you want to use to submit the job. 

Wall Time requested in hours:

This is the desired time, in hours, you want to allocate for the OOD job. The maximum value admissible depends on the partition you select. 

Number of cores:

This is the number of CPU cores you want to allocate for this job.

Number of GPU cards:

This is the number of GPU cards you want to allocate for this job. If you want to allocate one or more GPU card make sure to select a partition which supports GPU jobs. Leave this field blank if you do not need a GPU card

GPU card type:

Here you can select a particular type of GPU card. If you request a specific type of GPU card make sure to select a partition which includes the GPU type you are requesting.

Total Memory in GB:

This is the amount of memory (RAM) in GB you want to allocate for your job. 

MATLAB version:

Select the desired version of MATLAB to use.

Slurm Custom Arguments

This is an optional text field that can be used to pass additional flags to the Slurm scheduler when submitting the job.

 

After setting the above fields click on the Launch button which will submit the job.

While your job is pending on the queue you should  see a page like:

The Session ID highlighted link can be used to see the log files created for the current jobs on a new OOD browser tab.

When the job is dispatched and ready to run you should see a screen like:

You can control the compression and quality of the graphics with the two control bars. To open the MATLAB GUI click on the Launch MATLAB button.

A new tab should open with the MATLAB GUI like:

When done you need to close the MATLAB browser tab and click the Delete button from the OpenOnDemand Interactive session. 

Note: Closing OpenOnDemand browser will not terminate active applications. Your MATLAB OOD job will keep running until it reaches the requested Wall Time limit or the "Delete" button is used.

How to debug problems

If something does not work properly please make sure to record the actual O2 jobid  printed at the top of the interactive app window

 

( 54253410 in the example) and click on the Session ID highlighted link which should open the OOD file editor on the folder where the job’s log files are written.

To debug your problem you can start by checking the output log in the file output.log.

If you need additional help you can reach out to rchelp@hms.harvard.edu, make sure to include the full path listed on the OOD file page along with any content printed in the output.log file.

What to do if you accidentally minimize the MATLAB windows

If you accidentally minimize the MATLAB GUI you can bring it back using the VNC Alt option and the tab  key on your keyboard. 

For example, if within an active MATLAB OOD session you click the minimize button:

 

 

you might end up with an empty gray screen. However your MATLAB session is still active and can be brought back by first clicking on the VNC menu bar

then selecting the "A" option and the "Alt" button. 

 

Finally using the "Tab" on your local keyboard you can bring back all active windows in the sessions:

and by clicking with the mouse the desired GUI can be brought back to the screen.

After resuming your MATLAB GUI, remember to unselect the Alt button before resuming your work, leaving the VNC Alt button selected will be equivalent to adding Alt to anything you type.