How to use matlab in ssh server

조회 수: 189 (최근 30일)
준성
준성 2024년 8월 30일
댓글: 준성 2024년 9월 1일
  1. I have a MATLAB code file that I would like to run using GPUs.
  2. To do this, I plan to connect to a lab server via SSH and utilize the GPUs on the server.
  3. However, I'm not familiar with the steps required to accomplish this. If you have any tutorials or resources that could guide me, I would greatly appreciate it.
  4. Do I also need to install MATLAB on the server to run the code? The server is running Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64), and the GPUs available are three GeForce RTX 3090s.
  5. I would like to learn more about this process, but I'm unsure where to start, which is why I'm reaching out.

채택된 답변

Walter Roberson
Walter Roberson 2024년 8월 31일
There are two possibilities:
  1. You can install MATLAB on the server. Then you would copy your MATLAB files and data to the server. You would then ssh into the server and run MATLAB commands there. If you have not set up an X server and client, then you would end up needing to run MATLAB from the command line. You would write all results files locally on the server, and afterwards transfer them back to your original host; OR
  2. You can install MATLAB Parallel Server on the server. You would have your MATLAB files and data locally on your original host. When it is time to run something on the server, you would activate a parallel cluster, which will automatically form connections between MATLAB on your original host and MATLAB Parallel Server on the server. Programs and data will be automatically transmitted back and forth to the Parallel Server. https://www.mathworks.com/help/parallel-computing/scale-up-from-desktop-to-cluster.html
  댓글 수: 1
준성
준성 2024년 9월 1일
I think second option is better, but I need to read more documentation of it, because i know little things about server. Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Piyush Kumar
Piyush Kumar 2024년 8월 30일
  댓글 수: 1
준성
준성 2024년 8월 31일
Sorry, I don't understand. Can you give me detail tutorial?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by