Deploying with parallel toolbox "Unable to find file"
13 views (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
See Also
Categories
Find more on Parallel for-Loops (parfor) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!