qsubfunc
launching Matlab processes from Matlab under a Unix cluster grid
What is qsubfunc ? qsubfunc() is a Matlab function that submit jobs on the queue system of a Unix cluster running the Sun Grid Engine software (the Unix cluster does not have to be made of Sun machines though).
Features
- After openning a Matlab session, users can submit as many Matlab jobs as they wish
- The submitted Matlab jobs may call plotting functions (redirected to the user X-server automatically (see the qsubfunc function options))
- The submitted Matlab jobs (usually standard function calls) may return values in the local Matlab session (all data are passed through data files)
- While jobs are running, users can still run commands on the local matlab session (though this has to be done through the qsubfunc() editing window).
Requirement
- A cluster of Linux or Unix machine with the Sun Grid Engine installed (this software does not require to recompile a new kernel, it simply runs a deamon on each machine).
- Several Matlab license for all computer of the computer grid
- Downloading the qsubfunc.m Matlab function
Installing qsubfunc1. qsubfunc is distributed under a GNU General Public Licence. Read it first.2. Download the qsubfunc here (release 24 Oct. 2002)
3. Start Matlab and try this example to see if the qsubfunc() function works
>> qsubfunc({ {'max', { [1:10,11:-1:1] }, { 'maxval' 'maxindex' }} {'min', { [1:10,11:-1:1] }, { 'minval' 'minindex' }}} );
This launches two processes on the grid that compute the following:
>> [maxval maxindex] = max([1:10,11:-1:1]);
>> [minval minindex] = min([1:10,11:-1:1]);
Values are returned in the local workspace
Documentation & troubleshootingSee the function header under Matlab.
Back to home page
For any comments, to report bugs
or suggestions, arno@salk.edu.