- 最新
- 最多得票
- 最多評論
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:
-
Choose an appropriate EC2 instance type: AWS offers several instance types with NVIDIA GPUs.
-
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.
-
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.
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
You can use g4dn instances. If you need Ubuntu server, there is a tutorial here for getting NVIDIA drivers and CUDA installed: https://documentation.ubuntu.com/aws/en/latest/aws-how-to/instances/install-nvidia-drivers/
If you need graphical user interface there is this tutorial for installing the desktop to any EC2 instance here: https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529 You would just need to use a G4DN instance for the NVIDIA GPU There is another alternative using CloudFormation Templates here: https://github.com/aws-samples/amazon-ec2-nice-dcv-samples/blob/main/cfn/Ubuntu-NICE-DCV.yaml
And if you prefer everything ready to use, you can use Ubuntu on GPUs on AWS Workspaces.
相關內容
- 已提問 1 年前
- AWS 官方已更新 1 年前
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.