フィルターのクリア

Parallel computing unix scripts using MATLAB parallel computing toolbox

1 回表示 (過去 30 日間)
Arman
Arman 2012 年 4 月 30 日
Dear all,
I'm more fluent with MATLAB than unix and Oracle Grid Engine, so I'm using matlab MDCE and Parallel toolbox to submit jobs to my cluster of computers. I use the following for loop to write matlab scripts for each worker, and then I submit each script using "run script as batch job" in an open matlabpool:
for i = 1:length(subs)
fid = fopen(sprintf('batchsc_job_%s.m',batch_script_number,'wt');
fprintf(fid,'#!/bin/bash\n',) %adding the first line for unix shell script
unixStr= 'unix command';
fprintf(fid,'[s,W]=%s\n',unixStr); % This adds each line to the shell script
fclose(fid);
end
Does it make sense to you?
All the best, Arman

採用された回答

Jason Ross
Jason Ross 2012 年 4 月 30 日
There are some example scripts to integrate with SGE that ship with MATLAB. Check out matlabroot/toolbox/distcomp/examples. You can then configure MATLAB to talk with your cluster and submit jobs that are MATLAB code.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by