How to run a matlab code that requires NVIDIA GPU of at least 8gb of RAM

Federico Corrado (Staff) 5 Reputation points
2024-03-17T16:13:06.3033333+00:00

I have a matlab code (I have a university matlab license) that, in order to run, requires a NVIDIA GPU with a least 8gb in RAM. Does microsoft azure have products that would allow me to to run said code?

Many thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,876 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,321 Reputation points Microsoft Employee
    2024-03-17T19:20:43.7233333+00:00

    Hello, @Federico Corrado (Staff) ! Yes! There are several options to choose from an almost all meet the 8gb RAM requirement. I've made some recommendations below.

    How do I deploy a GPU MATLAB VM on Azure?

    The MATLAB site has full instructions for deployment using the Azure Marketplace (it sounds like you want the BYOL option, which I've included below). When you get to Virtual Machine Settings, you'll want to click on Change size and select a GPU VM size from the N-series. The NCv3-series and NC T4_v3-series sizes are optimized for compute-intensive GPU-accelerated applications although there are other options as well as they might be more than you need (a Standard_NV6 has 8GiB of GPU memory, as an example while a Standard_NV12 has 16 GiB). Here are MATLAB's instructions (more details on setup on the link):

    https://www.mathworks.com/help/cloudcenter/ug/run-matlab-from-azure-marketplace.html

    Use the following steps to configure and deploy MATLAB (BYOL) resources in a resource group.

    1. Navigate to https://portal.azure.com and login to your Azure account.
    2. From the Portal, click Create a Resource.
    3. Search for “matlab” in the marketplace and click on the MATLAB (BYOL) offering.
    4. Select a MATLAB release and click Create on the offering page to begin setup.
    5. The setup process uses a Resource Manager template to help you configure the virtual machine and networking settings. To make setup easy, many of the fields come prepopulated with acceptable values.

    Search for MATLAB in the Azure Marketplace

    User's image

    Click on Change size to select a GPU VM like the Standard_NV6

    User's image

    Resources:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.