This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
matlab_usage [2016/03/04 22:18] mgstauff [Parallel-processing / Multi-threading Considerations] |
matlab_usage [2018/02/06 20:44] (current) mgstauff [Matlab Search Path] |
||
---|---|---|---|
Line 5: | Line 5: | ||
If you need to replace the default CfN settings in your startup.m file, see / | If you need to replace the default CfN settings in your startup.m file, see / | ||
+ | ==== Matlab Search Path ==== | ||
+ | To customize the Matlab search path, change your ~/ | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Add the definition to your ~/ | ||
==== Matlab via qsub batch jobs==== | ==== Matlab via qsub batch jobs==== | ||
You may need to run Matlab scripts in a qsub job. It's fairly easy. This command will run a series of Matlab commands from the command line (shell), which we can use in a qsub job script: | You may need to run Matlab scripts in a qsub job. It's fairly easy. This command will run a series of Matlab commands from the command line (shell), which we can use in a qsub job script: | ||
Line 55: | Line 61: | ||
=== Number of Workers === | === Number of Workers === | ||
- | When using Matlab' | + | When using Matlab' |
NOTE: Your jobs (qsub or qlogin) run on a single compute node for easier parallel processing, and each compute node has only 16 cores. So you don't want to ask for more than 16 slots (and thus matlab workers) for a job. But also note that asking for 16 slots meaning waiting for a compute node to be completely free before you can start your job. | NOTE: Your jobs (qsub or qlogin) run on a single compute node for easier parallel processing, and each compute node has only 16 cores. So you don't want to ask for more than 16 slots (and thus matlab workers) for a job. But also note that asking for 16 slots meaning waiting for a compute node to be completely free before you can start your job. |