Deploying with parallel toolbox "Unable to find file"

1 次查看(过去 30 天)
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!

回答(1 个)

Walter Roberson
Walter Roberson 2016-3-29

类别

Help CenterFile Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by