read/save files in parpool batch mode?

3 次查看(过去 30 天)
I have a script that will read a csv file with "experiments" to run, selects a "row" if there is no corresponding folder created for this and will at the end of the simulation save results into that folder. Starting instances of matlab and executing this script works as each instance runs "its own" experiment and downloads the file. But when I pass the script to batch (and include necessary files) the folders aren't created. What could be different in batch mode? do I need to tell them what working directory to use? Any help appreciated, new to parpool

回答(1 个)

Varun Bhaskar
Varun Bhaskar 2015-8-11
Hello,
If you want to send files or folders to each of the workers, you can use the 'AttachedFiles' property of the job object created using parpool. You can also send data to each worker using the 'JobData' property of the job object.
Refer to the following link for more information about 'AttachedFiles':

类别

Help CenterFile Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by