Code covered by the BSD License  

Highlights from
Submit MATLAB functions to a cluster

Be the first to rate this file! 2 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)

Run MATLAB functions on a gridengine/torque/PBS cluster

| 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.
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
pbs Volkmar Glauche 22 Jun 2009 12:26:12
torque Volkmar Glauche 22 Jun 2009 12:26:12
pbs Rigo Trosendo 24 Feb 2011 22:01:35

Contact us at files@mathworks.com