This page is no longer maintained.

All information and guides related to AI Cloud have been moved to https://hpc.aau.dk/ai-cloud/ . Please visit the new site for the most up-to-date resources on AI Cloud

Matlab

It is possible to run MATLAB in AI Cloud

First, build your MATLAB image, e.g. like

Example

srun --cpus-per-task=6 singularity build matlab.sif docker://nvcr.io/partners/matlab:r2021b
Please note that it may be possible to build a container with a newer version of MATLAB than the above, but our attempts to build the R2022b and R2023a versions of the container in AI Cloud have so far failed.

Then we need to set an environment variable such that MATLAB knows your license. In this case its convenient to point to the AAU license server:

Info
export MLM_LICENSE_FILE=27000@matlab.srv.aau.dk

Now you can start MATLAB with command line imnterface only as:

Example
srun --pty --gres=gpu:1 singularity exec --nv matlab.sif matlab -nodesktop

Please note that it is not possible to run MATLAB with a graphical user interface, because Slurm is not configured for X-forwarding in AI Cloud.