Running large jobs in Matlab

Running large numbers of Matlab jobs is complicated, because each concurrent job ordinarily requires a separate licence, and only a limited number of licenses are available locally. To get around this, you can compile your Matlab job, as described below, and the compiled code will then not use up the licenses. Alternatively, you can try running your code under Octave; most Matlab code that doesn't use toolboxes should run as-is. Or you can use other numerical packages, such as R or SciPy (for Python).

Using Matlab on ECDF

The ECDF machine eddie currently (10/2007) has a trial version of matlab, but a full version is planned to be installed.

  • General information on how to submit a job can be found on: Matlab on EDDIE
  • If you need to run a job that requires more than 2GB of memory, use @sgeMemSubmitFcn rather than @sgeSubmitFcn e.g memory_slots = '2'; set(sched, 'SubmitFcn', {@sgeMemSubmitFcn, time_limit, memory_slots});
  • If you want to check whether your job finished with errors look under the directory where you store your log files. Find the job directory and load the out.mat file for a given task. This will load the errorstruct structure, which holds the relevant information. e.g. in matlab load $logdir/Job1/Task1.out.mat
  • If you have many functions to run within a job, specify 'PathDependencies' rather than 'FileDependencies'. e.g. file_dep ={'dir1' 'dir2'}; createJob(sched,'PathDependencies',file_dep);
  • UPDATE: Eddie is now accessible for NFS mount to DICE machines. Please contact dice support for access.

Using Matlab with Condor

Topic attachments
I Attachment Action Size Date Who Comment
pptppt matEddie.ppt manage 80.0 K 31 Oct 2007 - 17:37 Main.s0234516 Running matlab on Eddie
pdfpdf slides.pdf manage 273.6 K 31 Oct 2007 - 12:09 Main.s0565918 Parallel Computing with MPI, slides from Lawrence Murray
elsesub testfunction.sub manage 2.7 K 30 Oct 2007 - 21:58 JimBednar A sample Condor submit file for a compiled Matlab program
Edit | Attach | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 12 Nov 2007 - 14:27:26 - Main.s0234516
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies