Hoffman2:MATLAB: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Update about RAM constraints.)
(→‎External Links: updated link and matlab versions)
Line 32: Line 32:
If you are doing a larger computation, '''running MATLAB normally will probably not work well.'''
If you are doing a larger computation, '''running MATLAB normally will probably not work well.'''


Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with a ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.
Using the default method of launching MATLAB on Hoffman2 checks out an [[Hoffman2:Interactive_Sessions | interactive node]] with only 1GB of RAM.  This is woefully small if you are working with ten minutes of dense array EEG.  Use the following steps to launch a more capable MATLAB session.


<pre>
<pre>
Line 47: Line 47:
  $ matlab
  $ matlab
</pre>
</pre>
==Software Versions==
The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:
R2016b  or  matlab/9.1
R2019b  or  matlab/9.7






==External Links==
==External Links==
*[http://www.ats.ucla.edu/clusters/common/software/engineering/matlab.htm MATLAB on Hoffman2]
*[https://www.hoffman2.idre.ucla.edu/matlab_toolboxes/ MATLAB on Hoffman2]

Revision as of 20:13, 22 March 2020

Back to all things Hoffman2

MATLAB is not a small program and it can handle some fairly complex graphics. As such, this is not something suitable to be used on a login node of Hoffman2. But that's already been thought of by the great people at ATS.


GUI

To run a full GUI session of MATLAB, execute

$ matlab

That's it, no flags, no frills, nothing else. Hoffman2 will automatically check out an appropriate interactive node for you to run MATLAB on. All you have to do is provide a time limit (in hours) when they ask you

Enter a time limit for your session, in hours (default 2)
<or quit>: 


Command Line

If you don't need the fancy GUI and just want the command line, execute

$ matlab -nodesktop

and then supply a time limit when asked.

Since this uses interactive nodes, the maximum time limit you can request is 24 hours.


License Check

With so many people using Hoffman2 and MATLAB, sometimes licenses run out. Using this helpful script will give you some insight as to the license situation.

matlab_license_check.sh


Large Computations

If you are doing a larger computation, running MATLAB normally will probably not work well.

Using the default method of launching MATLAB on Hoffman2 checks out an interactive node with only 1GB of RAM. This is woefully small if you are working with ten minutes of dense array EEG. Use the following steps to launch a more capable MATLAB session.

 $ # Request an interactive node with time and memory required. In this case, 10 hours and 4GB RAM
 $ qrsh -l i,h_rt=10:00:00,h_data=4G
 $ # Load the module MATLAB
 $ # You can also load different versions of MATLAB:
 $ #   module load matlab/7.14
 $ #  or
 $ #   module load matlab/8.1
 $ # Try using "module help" for more information
 $ module load matlab
 $ # Launch MATLAB
 $ matlab


Software Versions

The current default version of MATLAB on Hoffman2 is R2015b, but more recent versions are also available for use:

R2016b  or  matlab/9.1
R2019b  or  matlab/9.7


External Links