Parallelization in MATLAB R2018b
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parallel Computing Fundamentals についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!