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 18:54] – 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 ==== | ||
| + | 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 22: | 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 === | ||
| < | < | ||
| Line 147: | Line 182: | ||
| Integrated with OpenLava 2.2 | Integrated with OpenLava 2.2 | ||
| + | |||
| + | === Using bsub === | ||
| + | |||
| + | Once this is working you can also do it via a script ofcourse. Build a simple script '' | ||
| + | |||
| + | < | ||
| + | |||
| + | #!/bin/bash | ||
| + | # submit via 'bsub < run.serial' | ||
| + | |||
| + | #BSUB -q matlab | ||
| + | #BSUB -J test | ||
| + | #BSUB -o out | ||
| + | #BSUB -e err | ||
| + | |||
| + | / | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | # this is the main matlab invocation which will launch the workers | ||
| + | JOBID | ||
| + | 353128 | ||
| + | |||
| + | [hmeij@swallowtail matlab]$ ssh n33 top -u hmeij -b -n 1 | ||
| + | unloading gcc module | ||
| + | top - 14:58:20 up 75 days, 2:29, 1 user, load average: 23.44, 23.27, 23.56 | ||
| + | Tasks: 816 total, | ||
| + | Cpu(s): 59.7%us, | ||
| + | Mem: 264635888k total, 156440960k used, 108194928k free, | ||
| + | Swap: 31999992k total, | ||
| + | |||
| + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||
| + | 18809 hmeij | ||
| + | 19021 hmeij | ||
| + | 18798 hmeij | ||
| + | 18805 hmeij | ||
| + | 18808 hmeij | ||
| + | 19020 hmeij | ||
| + | |||
| + | # and the workers appear, note the FROM_HOST | ||
| + | |||
| + | [hmeij@swallowtail matlab]$ bjobs | ||
| + | JOBID | ||
| + | 353129 | ||
| + | 353130 | ||
| + | 353131 | ||
| + | |||
| + | </ | ||
| Old pages, might be helpful... | Old pages, might be helpful... | ||
| * [[cluster: | * [[cluster: | ||
| - | * [[cluster:36|the Running Matlab Jobs page 07/ | + | * [[cluster:39|the Running Matlab Jobs page 07/ |
cluster/137.1426704843.txt.gz · Last modified: by hmeij
