Can I run a Matlab code (from my laptop) and use AWS to utilise a NVIDIA GPU of at least 8gb RAM?

0

Dear all,

I have some Matlab code that requires a NVIDIA GPU with at least 8gb of RAM. Is there any way Amazon Web Services would allow me to run that code (my laptop has a NVIDIA GPU, but the RAM is too small)?

Many thanks

asked a month ago213 views
2 Answers
2

Yes, Amazon Web Services (AWS) provides various compute instances with NVIDIA GPUs that can be used to run your MATLAB code. Specifically, you can use the Amazon Elastic Compute Cloud (EC2) service to launch instances with GPU capabilities.

Here are the steps you can follow to run your MATLAB code on an AWS EC2 instance with an NVIDIA GPU:

  1. Choose an appropriate EC2 instance type: AWS offers several instance types with NVIDIA GPUs.

  2. Create an EC2 instance: Log in to the AWS Management Console, navigate to the EC2 service, and launch a new instance with the desired GPU instance type. You can also choose the appropriate operating system (e.g., Amazon Linux, Ubuntu, Windows) and storage options.

  3. Install MATLAB: Once the instance is running, you can connect to it using SSH or a remote desktop connection. Then, you need to install MATLAB on the instance. You can follow the instructions provided by MathWorks for installing MATLAB on AWS EC2 instances.

Running MATLAB from GitHub

To launch MATLAB in AWS, use the reference architecture templates provided in this GitHub repository.

You can run the template directly from the link in the GitHub repository. Choose your MATLAB release, and then click the Launch Stack icon next to the region in which you want to deploy your resources.

By default, the MATLAB reference architectures launch prebuilt machine images. Using a prebuilt machine image is the easiest way to deploy a MATLAB reference architecture.

profile pictureAWS
answered a month ago
profile pictureAWS
EXPERT
reviewed a month ago
  • Hi FedeLondon24, yes, you can go this. Just check out the link about "Confirm Licensing for MathWorks Products Running on the Cloud" on the repo pointed out by Marcos: you want to make that your license can be used on AWS.

0

Thank you both.

There is huge variety of instance types. All I need is a NVIDIA GPU with at least 8GB of RAM that supports CUDA and four or more CPUs. I do not know, out of all the options, which would meet my minimum requirement

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions