Parallel Pool disobeying path order
Show older comments
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 Comment
Mario Malic
on 9 Dec 2020
Edited: Mario Malic
on 9 Dec 2020
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.
Answers (0)
Categories
Find more on Parallel Computing Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!