Where does "parsim" send my model files and attached files?
12 views (last 30 days)
Show older comments
MathWorks Support Team
on 23 Dec 2021
Edited: MathWorks Support Team
on 22 Jan 2024
I am curious how "parsim" transfers the necessary files to the workers. Does it make a copy of each file and send it to the workers directory?
Accepted Answer
MathWorks Support Team
on 22 Jan 2024
Edited: MathWorks Support Team
on 22 Jan 2024
For both local pools and clusters, "parsim" will create a temporary working folder for each worker. In local pools this is usually in the directory returned from ">>tempdir".
For local pools, dependent and attached files are added to the path of the workers but not typically copied to the worker's working directory. This is because all workers share the same file system thus meaning a copy for each worker is inefficient.
For external clusters, "parsim" will transfer the necessary files just once from the client to the remote cluster. Then it will either add the shared file location to each worker's path or create a copy of each file for each worker depending on the cluster.
View the article below for more information on how to see the workers file locations and example of where those might be on a local and external pool.
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Parallel Server 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!