Error using batch for parallel jobs
古いコメントを表示
Hello,
I have been trying to submit multiple jobs via batch to my university's remote linux-cluster running with torque. I keep getting the same message:
Error using batch (line 176)
Index exceeds matrix dimensions.
I tried looking specifically at line 176 in the batch function to determine what is going wrong, but I have been having no luck. Below is my function that calls batch:
function [job] = run_batch(p1,p2)
job = batch('logic_gate_analysis_mider', 1, {p1,p2},'Pool', 19);
end
Specifically, 'logic_gate_analysis_mider' is a function with two inputs.
Also I am using MATLAB 2014b, but I can switch to 2015a as well. Any ideas or suggestions are welcomed! Thanks!
Kasim
回答 (1 件)
Walter Roberson
2016 年 6 月 3 日
0 投票
I recommend that you put a try/catch around your code and if it is invoked, display the exception object. I suspect that your code has a problem. Line 176 of batch is where all errors that occur in the batch are caught. Oh, and add a simple line at the beginning of your routine indicating that your routine started running, so that you can tell whether it got that far.
If the try/catch in your routine is not invoked and the "I started running" message I mention is not displayed, then the problem would be in the scheduler and you might need to validate the parallel configuration.
カテゴリ
ヘルプ センター および File Exchange で Job and Task Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!