How to Run the Same MATLAB Code Through Two Laptops?

7 ビュー (過去 30 日間)
Kareem Elgindy
Kareem Elgindy 2022 年 4 月 13 日
編集済み: Kareem Elgindy 2022 年 4 月 15 日
I have a large data and my laptop takes probably a week to finish one run of my code. I'm thinking to reduce the amount of time by connecting my laptop with another one and use them both to run the same MATLAB code. Is this even possible?
  2 件のコメント
Kareem Elgindy
Kareem Elgindy 2022 年 4 月 14 日
Thanks Chunru. Very detailed answer indeed. Thanks for your time as well. However, the solution presented looks a bit hard for me. I never heard of Slurm before and the steps appear to be technical for a novice guy like me.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 14 日
編集済み: Edric Ellis 2022 年 4 月 14 日
If your code is designed to use Parallel Computing Toolbox, then you can distribute workers between multiple nodes or hosts. However this requires a MATLAB Parallel Server license. That toolbox is not available to Student licenses, and is moderately expensive for Standard licenses (but might be affordable for Academic licenses.)
If you were using Mac or Linux then you could potentially use ssh from one host to invoke matlab on the remote system, and give it a chunk of work to do.
If you were using Windows, then it just might be be possible to use the MATLAB Engine interface together with COM objects to request remote execution. MathWorks documentation about the execution engine does not list that as a possibility for Windows.
... Execution Engine for Mac and Linux does specifically say that you can request remote execution using that interface.
  6 件のコメント
Kareem Elgindy
Kareem Elgindy 2022 年 4 月 15 日
編集済み: Kareem Elgindy 2022 年 4 月 15 日
The Team who invented the Parallel Processing Toolbox should be rewarded. I just finished running a code using this toolbox in less than a day. That same code took more than 4 days before to run without the toolbox.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by