MDCS-question "UNEXPECTED ERROR in dctEvaluateTask." in all tasks

1 view (last 30 days)
We have a LSF cluster where we can send jobs. I send one matlab file that includes:
sched = findResource('scheduler','type','lsf');
set(sched,'ClusterMatlabRoot','/applications/matlab/2009b_dcs');
set(sched,'DataLocation','/home/myResultLocation);
set(sched,'SubmitArguments','-q mdcsQueue');
j = createJob(sched);
createTask(j,@testStartScript_1,0,{});
createTask(j,@testStartScript_2,0,{});
createTask(j,@testStartScript_3,0,{});
submit(j);
waitForState(j,'finished');
destroy(j)
The start scripts set a few parameters and then calls a main function. The results are saved on a disc. It all works and the results are correct and the one job, with different tasks, is deleted when finished. The only thing I would like to add is to print out if there are errors/warnings in a certain task in the file that sends all the tasks. I have found a way to print out the errors but I get "UNEXPECTED ERROR in dctEvaluateTask." in all tasks regardsless if it runs as it should or if I introduce an error that crashes the code. The crash and the reason for that I do not get.
Is there a communication problem with the file creating the tasks and the tasks themself?
We also have licenses for 2011b_dcs and when I run with that version I also get all the results correctly stored (if they run as they should) and with the same type of error in all tasks, and no other errors (even if I introduce some).
If I however start the file that creates the one job and the tasks with 2011b_dcs and in the file the code says 2009b_dcs (as shown) I can manage to get another error message in all the tasks, which is nice.
"This job was submitted with version 5.2 of the Parallel Computing Toolbox. However the current MATLAB Distributed Computing Server is version 4.2. You must run jobs from clients on servers with the same version."

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!