Deploying with parallel toolbox "Unable to find file"
Ältere Kommentare anzeigen
I'm trying to compile and run a standalone application using local workers on a machine. This code will be used on different machines, and I'd like to utilize all available cores.
I've used the following code:
defaultProfile = parallel.defaultClusterProfile
myCluster = parcluster(defaultProfile)
parpool(myCluster)
parfor FL = 1:size(CR2filelist, 1)
<process>
end
delete(gcp)
I get an error saying "Unable to find file:<function name of the function above>. The file is in 'Files required for your application to run' tab in the compiler app, and runs successfully when changing parfor to for.
Can what I'm trying to do be done?
Thank you!
Antworten (1)
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!