필터 지우기
필터 지우기

Parallelization in MATLAB R2018b

조회 수: 1 (최근 30일)
PIERRE OLIVIER SCHOUEL ATANGANA
PIERRE OLIVIER SCHOUEL ATANGANA 2021년 8월 30일
답변: Raymond Norris 2021년 8월 30일
please when i parallelize my function and this error:"An UndefinedFunction error was thrown on the workers for 'mex'. This might be because the file containing 'mex' is not accessible on the workers Use addAttachedFiles(pool, files) to specify the required files to be attached. See the
documentation for 'parallel.Pool/addAttachedFiles' for more details."
I don't know how to solve this problem please

채택된 답변

Raymond Norris
Raymond Norris 2021년 8월 30일
Please include how you're starting the parpool and how mex is being called. I suspect the issue is that the files required when calling mex aren't automatically attached to the parallel pool. For instance, in the following
mex my_code.m
parpool probably won't auto-attach my_code to the pool. Instead, you'll first need to run as the the error message states
addAttachedFiles(gcp,'my_code.m')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by