Be the first to rate this file! 18 downloads (last 30 days) File Size: 13.88 KB File ID: #24512

Submit MATLAB functions to a cluster

by Volkmar Glauche

 

22 Jun 2009 (Updated 25 Jun 2009)

Code covered by BSD License  

Run MATLAB functions on a gridengine/torque/PBS cluster

Download Now | Watch this File

File Information
Description

Using qsub_submit_cm, one can submit a MATLAB computation into a cluster. The inputs are passed on a shared network drive, and the outputs are collected there as well. Optionally, a callback can be executed on the submit host once computation has finished.

In http://www.mathworks.com/matlabcentral/fileexchange/24545, this code is optionally used to demonstrate how MATLAB handle objects, events and timers can be used to construct a scheduler that automatically resolves dependencies between computations.

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Linux/UNIX only - modifications needed for Windows. Cluster software not included. Shared network storage required - same paths on all cluster nodes.
Zip File Content  
Published M Files RUN MATLAB COMPUTATIONS ON A SUN GRIDENGINE CLUSTER
Other Files examples/qsub_example.m,
license.txt,
qsub_check_finish.m,
qsub_run_cm.m,
qsub_submit_cm.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
22 Jun 2009 Jveer

this might just be what i'm looking for! does this work on xgrid on mac osx server?

23 Jun 2009 Volkmar Glauche

Hi Jveer,
the MATLAB code should work on mac osx. However, you will need to modify qsub_submit_cm.m and qsub_check_finish.m. You will have to replace the qsub and qstat calls with their xgrid equivalents.
In qsub_submit_cm, you will have to replace the qsub command line call with the appropriate call to "xgrid ... -job submit ...", and in qsub_check_finish.m you would replace the qstat calls with "xgrid ... -job status ..." or something like this.
I do not have any experience with mac osx or xgrid, but it should be fairly straightforward to adapt these calls. If you have any questions, feel free to ask. If you get this code to run, it would be nice to let me know about the appropriate xgrid commands.

08 Oct 2009 Jveer

thanks for the reply. unfortunately i havent managed to get this to work on xgrid. it would've been superb for processing simulations.

Please login to add a comment or rating.
Updates
22 Jun 2009

Remove duplicate files.

25 Jun 2009

Updated documentation.

Tag Activity for this File
Tag Applied By Date/Time
distributed Volkmar Glauche 22 Jun 2009 12:26:12
cluster Volkmar Glauche 22 Jun 2009 12:26:12
gridengine Volkmar Glauche 22 Jun 2009 12:26:12
torque Volkmar Glauche 22 Jun 2009 12:26:12
pbs Volkmar Glauche 22 Jun 2009 12:26:12
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com