cluster:137
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cluster:137 [2015/03/18 19:14] – hmeij | cluster:137 [2019/06/12 17:00] (current) – [Submitting R2017+ Jobs] hmeij07 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| \\ | \\ | ||
| **[[cluster: | **[[cluster: | ||
| + | |||
| + | |||
| + | ==== Submitting R2017+ Jobs ==== | ||
| + | |||
| + | Wesleyan has obtained a campus wide site license for Matlab since version 2017. Hence there is no need to check out a license and the queue '' | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | # create this file then submit | ||
| + | # submit via 'bsub < run.sh' | ||
| + | |||
| + | #BSUB -q tinymem | ||
| + | #BSUB -J test | ||
| + | #BSUB -o out | ||
| + | #BSUB -e err | ||
| + | # match maxNumCompThreads(8); | ||
| + | #BSUB -n 8 | ||
| + | # all cores on single host | ||
| + | #BSUB -R " | ||
| + | |||
| + | |||
| + | |||
| + | export PATH=/ | ||
| + | |||
| + | matlab -nodisplay < myJob.m | ||
| + | |||
| + | </ | ||
| + | |||
| ==== Submitting R2015a Jobs ==== | ==== Submitting R2015a Jobs ==== | ||
| - | With MATLAB' | + | 2015 Matlab DCE has been uninstalled |
| + | --- // | ||
| + | **MATLAB' | ||
| + | ** | ||
| Ever since Matlab R2008a, I've been copying the " | Ever since Matlab R2008a, I've been copying the " | ||
| Line 24: | Line 55: | ||
| </ | </ | ||
| - | You can of course write a submit script and submit it to the scheduler, but with the Distributed | + | You can of course write a submit script |
| - | + | ||
| - | < | + | |
| === Within Matlab === | === Within Matlab === | ||
| + | < | ||
| # put this in a script myJob.m, then call it from within Matlab or type it all in, or set up a profile | # put this in a script myJob.m, then call it from within Matlab or type it all in, or set up a profile | ||
| Line 177: | Line 205: | ||
| < | < | ||
| - | # this is the main matlab invocation which will launch the works | + | # this is the main matlab invocation which will launch the workers |
| JOBID | JOBID | ||
| 353128 | 353128 | ||
| Line 197: | Line 225: | ||
| 19020 hmeij | 19020 hmeij | ||
| - | # and the workers appear | + | # and the workers appear, note the FROM_HOST |
| [hmeij@swallowtail matlab]$ bjobs | [hmeij@swallowtail matlab]$ bjobs | ||
cluster/137.1426706042.txt.gz · Last modified: by hmeij
