Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:matlab:farber [2020-10-29 11:15] – [Interactive parallel toolbox example] anita | software:matlab:farber [2021-04-27 16:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 206: | Line 206: | ||
===== Create a job script file ===== | ===== Create a job script file ===== | ||
- | You should create a job script file to submit a batch job. Start by modifying a job template file (''/ | + | You should create a job script file to submit a batch job. Start by modifying a job template file (''/ |
In your copy change the commented '' | In your copy change the commented '' | ||
require MATLAB, and then add your shell commands to the end of the file. Your copy may contain the lines: | require MATLAB, and then add your shell commands to the end of the file. Your copy may contain the lines: | ||
Line 318: | Line 318: | ||
===== Compiling your MATLAB ===== | ===== Compiling your MATLAB ===== | ||
- | There is an example MCR project in the ''/ | + | There is an example MCR project in the ''/ |
==== Copy dev-projects template ==== | ==== Copy dev-projects template ==== | ||
Line 324: | Line 324: | ||
On the head node | On the head node | ||
< | < | ||
- | cp -r / | + | cp -r /opt/shared/ |
cd MCR | cd MCR | ||
</ | </ | ||
Line 376: | Line 376: | ||
< | < | ||
- | cp / | + | cp /opt/shared/ |
vi matlab-mcr.qs | vi matlab-mcr.qs | ||
- | diff / | + | diff /opt/shared/ |
</ | </ | ||
The '' | The '' | ||
Line 895: | Line 895: | ||
/ | / | ||
</ | </ | ||
- | ====== Interactive parallel toolbox example | + | ===== Interactive parallel toolbox example ===== |
When you plan to use the parallel toolbox, you should logon exclusively to a compute node with the command: | When you plan to use the parallel toolbox, you should logon exclusively to a compute node with the command: | ||
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). | 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). | ||
Line 1034: | Line 1034: | ||
The '' | The '' | ||
- | / | + | /opt/shared/ |
or modify this simple example: | or modify this simple example: | ||
< | < |