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 Commento

Mario Malic
Mario Malic il 9 Dic 2020
Modificato: Mario Malic il 9 Dic 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.

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 8 Dic 2020

Modificato:

il 9 Dic 2020

Community Treasure Hunt

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

Start Hunting!

Translated by