Why do I receive the error Unable to read file '<filename>'. No such file or directory in MATLAB Workers?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 10 Jan 2018
Modifié(e) : MathWorks Support Team
le 26 Oct 2021
I would like to load some MAT files and do some operations.
But, when I do it in parallel, I get the following error-
ERROR: Unable to read file 'mockdata.mat'. No such file or directory.
How to fix this?
Réponse acceptée
MathWorks Support Team
le 22 Oct 2021
Modifié(e) : MathWorks Support Team
le 26 Oct 2021
Use addAttachedFiles if you would like to access files from workers.
'addAttachedFiles' adds extra attached files to the specified parallel pool. These files are transferred to each worker and are treated exactly the same as if they had been set at the time the pool was opened — specified by the parallel profile or the 'AttachedFiles' argument of the parpool function.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!