Parallel computing on Standalone Desktop App

4 ビュー (過去 30 日間)
Pierpaolo
Pierpaolo 2024 年 8 月 29 日
編集済み: Malay Agarwal 2024 年 8 月 30 日
Hi all,
I have developed a code in which I have used the parallel computing capabilities of Matlab. There is a parfor that helps me reducing computation time (I have many iterations). To share the app with some colleagues I have designed a simple GUI with the app designer and exported it as a standalone desktop app. While testing it, how can I be sure the parallel computing works on computers that don't have matlab on and on which the setup.exe of the app is run? I fear that when exported, the parfor becomes a simple for.
Any suggestion? Thanks!

採用された回答

Malay Agarwal
Malay Agarwal 2024 年 8 月 30 日
編集済み: Malay Agarwal 2024 年 8 月 30 日
To deploy MATLAB applications that run in parallel, you need to make sure that the cluster profile of the cluster where the code runs is available to the application. You can export the cluster profile as follows:
  1. In the Home tab, in the Environment section, select Parallel > Create and Manage Clusters.
  2. In the Cluster Profile Manager dialog, select a profile, and in the Manage section, click Export.
After obtaining the cluster profile, it can be set by:
  • Including the path to the cluster profile in the MATLAB function that uses parfor.
  • Including the cluster profile as an additional file when packaging the MATLAB application into a standalone application.
  • Passing the cluster profile to the standalone application at run time.
In your case, the second option of packaging the cluster profile as an additional file makes the most sense.
Please refer to the following example for a step-by-step guide on how to do this: https://www.mathworks.com/help/compiler/deploy-parallel-matlab-function-standalone-app.html.
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Parallel Server についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by