User Tools

Site Tools


matlab_on_cluster

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
matlab_on_cluster [2018/02/22 13:21] – [Matlab on multi-processor machines] lenocilmatlab_on_cluster [2021/06/24 07:19] (current) – [Matlab on multi-processor machines] lenocil
Line 3: Line 3:
 The aim of this short guide is to get you started with using matlab in a multi-processor environment. The goal is to instruct matlab to use a `pool' of ''n'' processors rather than a single one to speed up calculations. The aim of this short guide is to get you started with using matlab in a multi-processor environment. The goal is to instruct matlab to use a `pool' of ''n'' processors rather than a single one to speed up calculations.
  
-:!: Currently matlab2017a is available on all Lorentz Institute and Sterrewacht cluster machines. +|matlab is available on all Lorentz Institute and Sterrewacht cluster machines.| 
- +|Before trying to parallelize any codes, please make sure your code works as expected on one processor.| 
-:!: Before trying to parallelize any codes, please make sure your code works as expected on one processor. +|matlab versions prior to 2007 do not have the features discussed here.|
- +
-:!: matlab versions prior to 2007 do not have the features discussed here.+
  
 =====  Parallel Computing Toolbox aka matlabpool ===== =====  Parallel Computing Toolbox aka matlabpool =====
Line 13: Line 11:
 matlabpool can be used to parallelize your m script across multiple cores in a single machine. matlabpool can be used to parallelize your m script across multiple cores in a single machine.
  
-Open matlab and initialize the parallel environment+Open matlab ((Type ''ml spider matlab'' to list available versions)) and initialize the parallel environment
  
 <code> <code>
Line 30: Line 28:
              ClusterOsType : unix              ClusterOsType : unix
                ClusterSize : 8                ClusterSize : 8
-              DataLocation : /home/lenocil/.matlab/local_scheduler_data/R2010b+              DataLocation : /home/xxxxx/.matlab/local_scheduler_data/R2010b
        HasSharedFilesystem : true        HasSharedFilesystem : true
  
Line 60: Line 58:
 In matlab2010 the max number of workers is set to 8 where as that limit ip brought to 12 in matlab R2011b. In matlab2010 the max number of workers is set to 8 where as that limit ip brought to 12 in matlab R2011b.
  
-If you wanted to use 64 workers (for instance on one of the maris nodes), you will need a 64-node MDCS licence +If you wanted to use 64 workers (for instance on one of the maris nodes), you will need a 64-node MDCS licence ((Leiden University has an unlimited access license for everybodysee https://nl.mathworks.com/academia/tah-portal/universiteit-leiden-31485292.html)
-(you can buy it through our procurement officeemail '' bestellingen'') and you will also need to create a `scheduler' to manage these resources. There are detailed instructions on how to do this at http://nl.mathworks.com/support/product/DM/installation/ver_current/+ and you will also need to create a `scheduler' to manage these resources. There are detailed instructions on how to do this at http://nl.mathworks.com/support/product/DM/installation/ver_current/
  
 To modify the local configuration To modify the local configuration
matlab_on_cluster.1519305686.txt.gz · Last modified: 2018/02/22 13:21 by lenocil