read/save files in parpool batch mode?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Varun Bhaskar
el 11 de Ag. de 2015
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':
0 comentarios
Ver también
Categorías
Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!