| Matlab Distributed Computing Engine (DCE) - Example Job Submissions |
|
Page 5 of 7
Example Job SubmissionThe fsuClusterMatlab function can be called with any number of arguments, but if you want the default argument, you must leave an empty vector as a placeholder. It is beneficial to pass a separate directory for job output because the DCE creates multiple '.mat' files and a job subdirectory that holds task state, logs, and output. Please ensure that the function you are sending into fsuClusterMatlab is in your Matlab path. The simplest place to put your function is in '~/matlab' directory (automatically included in your Matlab path). If your submission fails or the results are unexpected, read the log file. Matlab creates a directory structure of input, output, and log files under a job number directory, e.g.: cd ~/matlab/jobs/Job22/ cat Job22.Task1.log License checkout failed. License Manager Error -4 Maximum number of users for MATLAB_Distrib_Comp_Engine reached. Try again later. To pass arguments into your function, there are three choices:
Examples of function use: fsuClusterMatlab(outputdir, walltime, jobtype, waitforresults, numworkers, jobfunc, jobfuncargs)
**NOTE** If you choose not to wait for your results (waiting locks up your current matlab client session), you have to manually retrieve them by going to the directory you submitted as your output directory, changing into the "JobNumber" directory, then load the TaskNumber.out.mat file. For Example (from the matlab prompt):
cd ~/matlab/jobs/Job141
load Task1.out.mat
whos
Name Size Bytes Class Attributes
results 1x1 912 cell
celldisp(results)
results{1} =
18 25 2 9 16
24 6 8 15 17
5 7 14 21 23
|



