Assertion failed using parfor
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I use this code I obtain this error:
Error using consume_assign (line 23)
Assertion failed.
Error in parprova>(parfor consume)
Error in parprova (line 16)
This is the code :
parfor iGauss=1:8
GaussModel=[];regremulti=[];regremulti2=[];
if not(mod(iGauss,5)==0)
regremulti=temprenetinputs;
regremulti(56,1:3130)=tempostnetinputs(iGauss,1:3130);
[GaussModel, validationAccuracy{iGauss}] = GaussRegrExpZero(regremulti)
regremulti2(1:55,1:3130)=regremulti(1:55,1:3130);
yfit{iGauss}=GaussModel.predictFcn(regremulti2);
else
yfit{iGauss}=0;
end
end
I don't saturate the RAM and the 4 workers runs at 80%. Somebody can explain me what's happening?
0 commentaires
Réponses (3)
Tao Wang
le 13 Juil 2018
I encounter a similar issue. Whenever parfor is used, matlab complains that
"Too many input arguments."
0 commentaires
Tao Wang
le 13 Juil 2018
seems to me a fairly common use case like openmp, why does matlab not work properly?
0 commentaires
Tao Wang
le 13 Juil 2018
Version: matlab R2018a VALIDATION REPORT Profile: local Scheduler Type: Local
Stage: Cluster connection test (parcluster) Status: Passed Start Time: Fri Jul 13 13:09:43 PDT 2018 Finish Time: Fri Jul 13 13:09:43 PDT 2018 Running Duration: 0 min 0 sec Description: Error Report: Command Line Output: Debug Log:
Stage: Job test (createJob) Status: Failed Start Time: Fri Jul 13 13:09:44 PDT 2018 Finish Time: Fri Jul 13 13:09:44 PDT 2018 Running Duration: 0 min 0 sec Description: An unexpected error occurred accessing properties: "AdditionalPaths" "ApiTag" "AttachedFileData" "AttachedFilePaths" "AttachedFiles" "AutoAttachFiles" "AutoAddClientPath" "CreateDateTime" "CreateTime" "DependentFiles" "EnvironmentVariables" "ExecutionMode" "FinishDateTime" "FinishTime" "JobData" "MATLABDrivePathMap" "Name" "NumPathsToAppend" "NumThreads" "ProductKeys" "StartDateTime" "StartTime" "StateEnum" "SubmitDateTime" "SubmitTime" "Tag" "Username" "Version" "JobSchedulerData" Error Report: An unexpected error occurred accessing properties: "AdditionalPaths" "ApiTag" "AttachedFileData" "AttachedFilePaths" "AttachedFiles" "AutoAttachFiles" "AutoAddClientPath" "CreateDateTime" "CreateTime" "DependentFiles" "EnvironmentVariables" "ExecutionMode" "FinishDateTime" "FinishTime" "JobData" "MATLABDrivePathMap" "Name" "NumPathsToAppend" "NumThreads" "ProductKeys" "StartDateTime" "StartTime" "StateEnum" "SubmitDateTime" "SubmitTime" "Tag" "Username" "Version" "JobSchedulerData"
Caused by: Error using assert Too many input arguments. Command Line Output: Debug Log:
Stage: SPMD job test (createCommunicatingJob) Status: Failed Start Time: Fri Jul 13 13:09:44 PDT 2018 Finish Time: Fri Jul 13 13:09:44 PDT 2018 Running Duration: 0 min 0 sec Description: An unexpected error occurred accessing properties: "AdditionalPaths" "ApiTag" "AttachedFileData" "AttachedFilePaths" "AttachedFiles" "AutoAttachFiles" "AutoAddClientPath" "CreateDateTime" "CreateTime" "DependentFiles" "EnvironmentVariables" "ExecutionMode" "FinishDateTime" "FinishTime" "JobData" "MATLABDrivePathMap" "Name" "NumPathsToAppend" "NumThreads" "ProductKeys" "StartDateTime" "StartTime" "StateEnum" "SubmitDateTime" "SubmitTime" "Tag" "Username" "Version" "JobSchedulerData" "MinNumWorkers" "MaxNumWorkers" Error Report: An unexpected error occurred accessing properties: "AdditionalPaths" "ApiTag" "AttachedFileData" "AttachedFilePaths" "AttachedFiles" "AutoAttachFiles" "AutoAddClientPath" "CreateDateTime" "CreateTime" "DependentFiles" "EnvironmentVariables" "ExecutionMode" "FinishDateTime" "FinishTime" "JobData" "MATLABDrivePathMap" "Name" "NumPathsToAppend" "NumThreads" "ProductKeys" "StartDateTime" "StartTime" "StateEnum" "SubmitDateTime" "SubmitTime" "Tag" "Username" "Version" "JobSchedulerData" "MinNumWorkers" "MaxNumWorkers"
Caused by: Error using assert Too many input arguments. Command Line Output: Debug Log:
Stage: Pool job test (createCommunicatingJob) Status: Skipped Start Time: Finish Time: Running Duration: Description: Validation skipped due to previous failure. Error Report: Command Line Output: Debug Log:
Stage: Parallel pool test (parpool) Status: Skipped Start Time: Finish Time: Running Duration: Description: Validation skipped due to previous failure. Error Report: Command Line Output: Debug Log:
0 commentaires
Voir également
Catégories
En savoir plus sur Code Execution dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!