Matlab

Matlab

matlab

Contents

            1. Description

            2. Requirement

            3. How to use Matlab using HPC

            4. Contact Us

Description:

MATLAB® is a high-level language and interactive environment for numerical computation, visualization, and programming. Using MATLAB, you can analyze data, develop algorithms, and create models and applications. The language, tools, and built-in math functions enable you to explore multiple approaches and reach a solution faster than with spreadsheets or traditional programming languages, such as C/C++ or Java™.

Version: Matlab R2013a, R2017a

a. Allows users to submit sequential or parallel Matlab code from their personal machine to a cluster.
b.120 Concurrent Users (Basic).
c.16 Cores

Webpage:
http://www.mathworks.com/index.html
 

Requirement

Step 1: Please register to UTM HPC Account
Step 2: HPC admin (hpc@utm.my) will sent HPC account to your email.
 

How to use Matlab using HPC

METHOD 1
How to Use MATLAB MDCS 2013a at UTM: Parallel Matlab on UTM HPC
Run Parallel Simulations Information: Read more on this MathWorks Website

Facilities in CICT UTM

We have provided the PC client in all WD quadran that has been installed the Matlab R2013a software and you should come to CICT computer lab level 3 to use this facilities.
 
METHOD 2

Submit a Matlab job

In the example below the input folder, matlabpool2.m will be run after submit a job using PBS script, pbs-script. For example, create a submission script file called pbs-script that contains the lines below. This example requests one node and eight processor cores.

#!/bin/sh
###### Select resources #####
#PBS -N matlab.test

###### Edit number of CPU #####
#PBS -l nodes=1:ppn=8

##### Queue #####
#PBS -q bigmem

module load matlab/r2017a

##### Change to current working directory #####
cd $PBS_O_WORKDIR

##### Execute Program #####
echo "Starting job"
matlab -nosplash -nodisplay -nodesktop < matlabpool2.m > results
echo "Done with job"

Input file example (matlabpool2.m)

# c = parcluster
# matlabpool(c)
tic
n = 200;
A = 500;
a = zeros(n);
parfor i = 1:n
a(i) = max(abs(eig(rand(A))));
end
toc
# matlabpool close force local

Transfering Files & Submitting Job

Then, upload the submission script above and your input file to the HPC using WinSCP tool. To submit a job, please using a Putty tool and run the command below. How to access the HPC server, please go to our New User Guide page.
 
Then, submit the Matlab submission job as above to the queue:

Users can submit the job using two options as below. The pbs-script name below is the name of your submission script.

qsub -q bigmem pbs-script
OR
qsub -q hpc pbs-script
Please note that queue for hpc above have 8 core’s for each cluster/node so if you are using this cluster please make sure in the script, you state “ppn=8″ to make sure your job can run.
 

Contact Us

Any problem about HPC, please email to hpc@utm.my or our facebook (MATLAB)