software:matlab:farber

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
software:matlab:farber [2019-08-29 17:44] – [Grid Engine script] anitasoftware:matlab:farber [2020-10-29 11:16] – [Interactive parallel toolbox example] anita
Line 2: Line 2:
  
 For use on Farber, MATLAB projects should be developed using a Desktop installation of MATLAB and then copied to Farber For use on Farber, MATLAB projects should be developed using a Desktop installation of MATLAB and then copied to Farber
-to be run in batch.  Here an extended MATLAB example is considered involving one simple MATLAB function, and two MATLAB scripts to executed this function in a loop, and to execute in parallel using the Parallel Toolbox.+to be run in batch.  Here an extended MATLAB example is considered involving one simple MATLAB function, and two MATLAB scripts to execute this function in a loop, and another to execute in parallel using the Parallel Toolbox.
  
 Details on how to run these two scripts in batch are given with the resulting output files.  There is also a Details on how to run these two scripts in batch are given with the resulting output files.  There is also a
Line 522: Line 522:
 </code> </code>
  
-==== Grid Engine script ====+====== Batch job serial example ======
  
 Second, write a shell script file to set the Matlab environment and start Matlab running your script file. The following script file will set the Matlab environment and run the command in the [[#matlab-script|script.m]] file: Second, write a shell script file to set the Matlab environment and start Matlab running your script file. The following script file will set the Matlab environment and run the command in the [[#matlab-script|script.m]] file:
Line 585: Line 585:
 </code> </code>
  
-<note warning>You should specify required [[#matlab-license-information-for-grid-engine|Matlab licenses for Grid-Engine]] as a resource, especially if there are limited number of license seats available for particular toolboxes.+<note warning>You should specify required [[#matlab-license-information-for-grid-engine|Matlab licenses for GridEngine]] as a resource, especially if there are limited number of license seats available for particular toolboxes.
  
 In this example you will only need a license for the base Matlab, and the parallel toolbox needs one license.  We are using the default local scheduler which will give you workers on the same node with one license. In this example you will only need a license for the base Matlab, and the parallel toolbox needs one license.  We are using the default local scheduler which will give you workers on the same node with one license.
Line 747: Line 747:
  
  
-===== Batch parallel example =====+====== Batch parallel example ======
  
 The Matlab parallel toolbox uses JVM to manage the workers and communicate while you are running.  You The Matlab parallel toolbox uses JVM to manage the workers and communicate while you are running.  You
Line 815: Line 815:
  
  
-===== Interactive example =====+====== Interactive example ======
  
 The basic steps to running a [[:software:matlab#interactive-job|MATLAB]] interactively on a compute node.  The basic steps to running a [[:software:matlab#interactive-job|MATLAB]] interactively on a compute node. 
Line 953: Line 953:
  
  
-===== MCR array job example =====+====== MCR array job example ======
  
 Most Matlab functions can be compiled using the Matlab Compiler (MCC) and then deployed to run on the compute nodes in the MATLAB Compiler Runtime (MCR).  The MCR is a prerequisite for deployment, and is installed on all the compute nodes. You must use VALET to set up the libraries you will need to run your function from the command line.  You do not need to use the shell (''.sh'' file) that the compiler creates. Most Matlab functions can be compiled using the Matlab Compiler (MCC) and then deployed to run on the compute nodes in the MATLAB Compiler Runtime (MCR).  The MCR is a prerequisite for deployment, and is installed on all the compute nodes. You must use VALET to set up the libraries you will need to run your function from the command line.  You do not need to use the shell (''.sh'' file) that the compiler creates.
  • software/matlab/farber.txt
  • Last modified: 2021-04-27 16:21
  • by 127.0.0.1