Deploying with parallel toolbox "Unable to find file"
Afficher commentaires plus anciens
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!
Réponses (1)
Catégories
En savoir plus sur Parallel for-Loops (parfor) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!