read/save files in parpool batch mode?

조회 수: 2 (최근 30일)
Jon Norberg
Jon Norberg 2015년 8월 6일
답변: Varun Bhaskar 2015년 8월 11일
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