Matlab

Description

Matlab is a universal interactive numerical application system with advanced graphical user interface. You can find some documentation of the provider here.

Licence

On the HPC resources at GWDG there are three network licences available for Matlab. Also we have following extensions: Simulink, Optimization Toolbox, Parallel Computing Toolbox and Statistics and Machine Learning Toolbox.

Login

The dialog server and frontend nodes of the HPC resources at GWDG can be reached directly only inside the GoeNet network. Login to gwdu101 (or alternatively to gwdu102) via:

ssh -Y gwdu101

For the connection from Microsoft clients use an appropriate software like X-Win32.

If your connection to gwdu101 is refused you might not have the permission to use the HPC resource. You can request this permission by a short email to mailto:hpc@gwdg.de.

If you want to use the service from outside GoeNet, first login to login.gwdg.de and then proceed as above.

Command

First prepare the necessary environment with:

module load matlab/2018b

The use of Matlab must be be scheduled by the batch system in the interactive queue onto an available node. Therefore the following command to the batch system is necessary:

srun --x11 -c 20 -N 1 -p int --pty bash

after a short time period you will get a Shell prompt and you can call Matlab with the command:

matlab

The current version can be found on the main matlab screen under 'Help - About Matlab'.

Parallelization

The cluster currently has only Parallel Computing Toolbox for Matlab (without Matlab Distributed Computing Server), it means that the opportunities of parallelization are limited in one node. You can only use multiple processors of a single computing node.

Parallel Computing Toolbox provides following commands and structures for parallel programs:

  • parfor - parallel for loop
  • gpuArray - to work with GPU
  • parfeval
  • spmd
  • tall arrays

Contact

Dr. Ulrich Schwardmann, Tel.: 0551 201-1542, E-Mail: uschwar1 [at] gwdg.de