software:matlab:mills

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
Next revisionBoth sides next revision
software:matlab:mills [2019-08-29 14:41] – [Matlab on Mills] anitasoftware:matlab:mills [2019-08-29 14:52] – [Timing and core count] anita
Line 118: Line 118:
 The page will using a Matlab function to illustrate using Matlab in batch and interactively.  The function will be run on multiple cores using multiple computational threads, and 12 workers from a Matlab pool.  Finally it will be compiled an deployed. The page will using a Matlab function to illustrate using Matlab in batch and interactively.  The function will be run on multiple cores using multiple computational threads, and 12 workers from a Matlab pool.  Finally it will be compiled an deployed.
  
-===== Batch example ===== 
  
-The basic steps to run [[:software:matlab#batch-job|batch MATLAB]]. 
 ==== Matlab script ==== ==== Matlab script ====
 First, write a Matlab script file. It should have a comment on the first line describing the purpose of the script and have the ''quit'' command on the last line. This script will call the [[#matlab-function|maxEig function]] 200 times and report the average: First, write a Matlab script file. It should have a comment on the first line describing the purpose of the script and have the ''quit'' command on the last line. This script will call the [[#matlab-function|maxEig function]] 200 times and report the average:
Line 206: Line 204:
 </code> </code>
  
-<note warning>See [[software:matlab:mills#matlab-license-information|Matlab licenses]] for details on specifying resources if there are limited number of license seats available for particular toolboxes.+<note warning>See [[#matlab-license-information|Matlab licenses]] for details on specifying resources if there are limited number of license seats available for particular toolboxes.
  
 In this example you will need a license for the base Matlab, and the parallel toolbox needs one license.  We are using the default local scheduler which give you 12 workers on the same node with one license. In this example you will need a license for the base Matlab, and the parallel toolbox needs one license.  We are using the default local scheduler which give you 12 workers on the same node with one license.
Line 363: Line 361:
 We have the correct Grid Engine options ''-pe threads 12'' for this case. We have the correct Grid Engine options ''-pe threads 12'' for this case.
  
-[[clusters:mills:matlab-two-samenode|Two Matlab interactive jobs on same node]]+[[software:matlab:mills:matlab-two-samenode|Two Matlab interactive jobs on same node]]
  
 ===== Batch parallel example ===== ===== Batch parallel example =====
  • software/matlab/mills.txt
  • Last modified: 2019-08-29 16:05
  • by anita