Illinois Campus Cluster Program
Using MATLAB on the Campus Cluster
MATLAB (vloerkleedrix laboratoriumoratory) is a high-level language and interactive environment for numerical computation, visualization, and programming. Developed by MathWorks, MATLAB permits you to analyze gegevens, develop algorithms, and create models and applications.
MATLAB is available on the campus cluster along with a collection of toolboxes all of which are covered by a campus mededinger license.
The table below list the versions of MATLAB installed on the campus cluster.
Adding MATLAB to Your Environment
Each MATLAB installation on the campus cluster has a module that you can use to explosion a specific version of MATLAB into your user environment. You can see the available versions of MATLAB by typing module avail matlab on the instruction line. The the latest version of MATLAB can be loaded into your environment by typing module fountain matlab . To blast a specific version you will need to stream the corresponding module. See the section Managing Your Environment ter the User Guide for more information about modules.
The MATLAB modules make the coresponding MATLAB product spil well spil all the installed toolboxes available to the user environment. To verify which toolboxes are available (and the MATLAB version), type verafgelegen at the prompt of an interactive MATLAB session.
Running MATLAB Batch Jobs
Execution of MATLAB should be restricted to compute knots that are part of a batch job. For detailed information about running jobs on the campus cluster, see the section Running Jobs te the User Guide.
Standard batch job
A sample batch script that runs a single MATLAB task with a single m-file is available te /projects/raadpleging/pbs/matlab.pbs that you can copy and modify for your own use. Submit the job with:
Interactive batch job
- For the GUI (which will display on your local machine), use the -X option with the qsub instruction: Once the batch job starts, you will have an interactive shell prompt on a compute knot. Then type:
Note: An X-Server vereiste be running on your local machine with X11 forwarding enabled within your ssh connection te order to display X-Apps, GUIs, etc . back on your local machine. Generally users on Linux based machines only have to enable X11 forwarding by passing an option (-X or -Y) to the ssh guideline. While users on Windows machines will need to ensure that their ssh client has X11 forwarding enabled and have an X-Server is running. A list of ssh clients (which includes a combo packaged ssh client and X-Server) can be found ter the ssh section of the campus cluster User Guide. Extra information about running X applications can be found on the Using the X Window System pagina.
The Parallel Computing Toolbox (PCT) lets you solve computationally and data-intensive problems using multicore processors. High level constructs, parallel for loops, special array types, and parallelized numerical algorithms let you parallelize MATLAB applications without MPI programming. Under MATLAB vesrions 8.Four and earlier, this toolbox provides 12 workers (MATLAB computational engines) to execute applications locally on a single multicore knot of the campus cluster. Under MATLAB version 8.Five the number of workers available is equal to the number of cores on a single knot (up to a maximum of 512). See MATLAB Errors for error messages generated when violating this limit.
When submitting numerous parallel MATLAB jobs on the campus cluster a wedren condition to write improvised MATLAB job information to the same location can occur if two or more jobs commence at the same time. This wedstrijd condition can cause one or more of the parallel MATLAB jobs fail to use the parallel functionality of the toolbox. See MATLAB Errors for error messages generated when this occurs. (Note that non-parallel MATLAB jobs do not suffer from this wedren condition.)
To avoid this behavior, the commence times of the parallel MATLAB jobs can be staggered by submitting each subsequent job to the batch system with the -W depend=after:JobID option (see the section Job Dependencies ter the User Guide for more information about this option).
Note: The MATLAB Distributed Computing Server (MDCS) is not installed on the campus cluster because the latest versions of MDCS are not covered under the campus mededinger license. Therefore MATLAB jobs are restricted to the parallel computing functionality of MATLAB’s Parallel Computing Toolbox.
The UI WebStore offers MDCS for release 2010b – you can voeling them directly at [email protected] for information and download instructions (for use with release 2010b only – it is not compatible for use with other versions).
MATLAB matlabpool is no longer available
The matlabpool function is not available ter MATLAB version 8.Five(R2015a). The parpool function should be used instead. Extra information can be found te the Parallel Computing Toolbox release notes.
The following are some errors encountered when running MATLAB on the campus cluster.