HKUST ITSO AI Chatbot

Important reminder

Please do not disclose personal data such as your HKUST account number, staff/student ID or name in the chatbot. Information provided will be retained to enhance system performance.

By using the HKUST ITSO Chat service, you confirm that you have read, understood, and agreed to the Disclaimer


Log in to access additional information for your user group in addition to the publicly accessible content.

Send Icon
Matlab

The Matlab available in HPC2 cluster can be run with 1 cpu (core) and up to the maximum number of cpus (cores) in the compute node with the Parallel Computing Toolbox. The supported toolboxes of Matlab can be found here. The instruction on job submission via SLURM is as follows.

Suppose you have prepared a Matlab script, say myapp.m, for your application, be sure to put the following statement at the end to exit Matlab

exit;

The sample job submission script with Slurm: hpc2_slurm_matlab.txt

Presume you have matlab working directory in your gpu home, place your matlab script and the slurm_matlab.txt there.

To submit the job,

sbatch hpc2_slurm_matlab.txt

To check your job status,

squeue -u $USER

The output file and slurm-<jobid>.out will be in the job submission directory.


To cancel the job,

scancel <jobid>

Support

General Enquiries cchelp@ust.hk
Suggestions & Complaints cclisten@ust.hk
Serviceline +852-2358-6200