Parallel Pool disobeying path order

I am running a function that has a different version in another repository. Although that repo is below the folder where my function is located, it is referencing the inncorrect version. This does not happen if the function is ran outside of a parpool. Any ideas???

댓글 수: 1

Mario Malic
Mario Malic 2020년 12월 9일
편집: Mario Malic 2020년 12월 9일
Parpool copies the required files to each worker, so it probably copies the function that you don't want to be copied. If the "correct" function file (and it is on MATLAB path) has the same name as the file in the root folder, then it will be shadowed, and the "incorrect" version will be copied to worker. You would probably get a warning about function being shadowed, if not, probably because the text in bold is not true in your case.
There's an option to manually add files to parpool - link, but the issue about filename still remains.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

질문:

2020년 12월 8일

편집:

2020년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by