필터 지우기
필터 지우기

How to Run the Same MATLAB Code Through Two Laptops?

조회 수: 40 (최근 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
Chunru
Chunru 2022년 4월 13일
Install and Configure MATLAB Parallel Server for Slurm
If you have a cluster with Slurm, follow these instructions to integrate MATLAB® with your scheduler using MATLAB Parallel Server™. If you do not have an existing scheduler in your cluster, see: Install and Configure MATLAB Parallel Server for MATLAB Job Scheduler and Network License Manager.
These instructions guide you through the following tasks:
After you integrate MATLAB with Slurm, you can access workers in your cluster from a desktop MATLAB client session with Parallel Computing Toolbox™. Workers are MATLAB computational engines that typically correspond to a core.
The setup in these steps uses the network license manager.
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월 14일
편집: Kareem Elgindy 2022년 4월 15일
@Walter Roberson This is very useful... I installed the toolbox and started to run it tonight, and I'm enjoying it already.
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개)

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by