Assertion failed using parfor

조회 수: 6 (최근 30일)
Emiliano Rosso
Emiliano Rosso 2018년 1월 3일
답변: Tao Wang 2018년 7월 13일
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?

답변 (3개)

Tao Wang
Tao Wang 2018년 7월 13일
I encounter a similar issue. Whenever parfor is used, matlab complains that
"Too many input arguments."

Tao Wang
Tao Wang 2018년 7월 13일
seems to me a fairly common use case like openmp, why does matlab not work properly?

Tao Wang
Tao Wang 2018년 7월 13일
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:

카테고리

Help CenterFile Exchange에서 Code Execution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by