You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

(last updated: )

In this page:



 

The following guide describe how to load, configure and use matlab @ CINECA's cluster 

Load the MATLAB module 

login to Galileo cluster, and type

[user@node166 ~]$ module load profile/eng autoload matlab/r2017a

Configuration

Configure MATLAB to submit jobs will by default to the cluster rather than submit to the local node or local machine.

Cluster Configuration

Start MATLAB, without desktop.

[user@node166 ~]$ matlab -nodesktop

 Configure MATLAB to run parallel jobs on your cluster by calling configCluster.  For each cluster, configCluster only needs to be called once per version of MATLAB, and once per user

>> configCluster

Local Configuration

After having installed MATLAB to your workstation 

Configuring Jobs

Prior to submitting the job, various parameters have to be specified in order to be passed to jobs, such as queue, username, e-mail, etc. 

NOTE:  Any parameters specified using the below workflow will be persistent between MATLAB sessions.

Before specifying any parameters, you will need to obtain a handle to the cluster object.

>> % Get a handle to the cluster
>> c = parcluster;

 

You are required to specify an Account Name prior to submitting a job. You can retrieve your Account Name / Bugdet info by using the saldo command

>> % Specify an Account to use for MATLAB jobs
>> c.AdditionalProperties.AccountName = ‘account_name’

 

You can specify other additional parameters along with your job.

>> % Specify a queue to use for MATLAB jobs
>> c.AdditionalProperties.QueueName = ‘shared’
>> % Specify e-mail address to receive notifications about your job
>> c.AdditionalProperties.EmailAddress = ‘test@foo.com
>> % Specify the walltime
>> c.AdditionalProperties.WallTime = '00:10:00'

>> % Specify processor cores per node.  Default is 16.

>> c.AdditionalProperties.ProcsPerNode = 16

 

To see the values of the current configuration options, call the specific AdditionalProperties name.

>> % To view current configurations
>> c.AdditionalProperties.QueueName

 

Or to see the entire configuration

>> c.AdditionalProperties

 

To clear a value, assign the property an empty value (‘’, [], or false).

>> % To clear a configuration that takes a string as input 
>> c.AdditionalProperties.EmailAddress = ‘ ’

 

To save a profile, with your configuration ....

Serial Jobs

Parallel Jobs

Debugging

To learn More

Parallel Computing Benchmarck

Checking the license server

To check the license server status, please type: 

[user@node165 ispisso0]$ lmutil lmstat -a -c $MLM_LICENSE_FILE


 

 


dependences:


 outgoing links:

  • No labels