Parallel Pool disobeying path order
Mostrar comentarios más antiguos
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 comentario
Mario Malic
el 9 de Dic. de 2020
Editada: Mario Malic
el 9 de Dic. de 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.
Respuestas (0)
Categorías
Más información sobre Parallel Computing Fundamentals en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!