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!
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!