How can i use GPU for mathlab2024b version training please, i need steps

For now training is running on CPU, but i want it on GPU, i need urgent support

5 Comments

@Evangeline what does
canUseGPU
return?
First you must have <Parallel Computing> and <Deep-Learning> toolboxes. Then <GPU Computing> outlines the process to get started...
In particular you would need an NVIDIA GPU

I do have NVIDIA Geforce MX230 in my laptop already, but matlab needed upgraded version, so I had visited their official page and downloaded and installed a similar version of MX250. Well, I'm training on it, says it 6.1 version, it's pretty slow...I reduced epoch count to 5 and miniBatch to 8. Let's see the accuracy...

But my question is to make the training faster, I need a higher GPU? Such as a Desktop?

Sign in to comment.

Answers (1)

Have you reviewed the documentation pages in this category in the Deep Learning Toolbox documentation? If you have, do you have a specific question about one or more of the suggestions / steps on a particular page? Please post a link to that page and ask your specific question about the content on that page.

4 Comments

I have deep learning toolbox installed, just the training is crashing, and I want to see if GPU methods and version that can mitigate this

I referred the documentation, I want clarity on how I can use multiple Gpus for local machine training, I don't understand the steps and how to add the code n where

The MX230 has a maximum of 2 gigabytes of RAM, so you might be getting crashes if you are trying to use models that are more than roughly 2/3 to 1 gigabyte.
Hi Evangeline, this is a bit confusing. How can you use multiple GPUs for training on a laptop? Perhaps, again, reading the documentation on training on multiple GPUs might be what you need before bringing your questions to this forum.
This
I had visited their official page and downloaded and installed a similar version of MX250
doesn't really make sense - you can't download a new GPU. So perhaps you are referring to something else and are getting your terminology mixed up?
Note that laptop GPUs are heavily power throttled. Try turning your power settings to best performance, and ensuring your laptop is plugged in - that may help if you haven't done that already, although you may still see throttling if your laptop is overheating. The answer to your original question may indeed be yes, you need a desktop GPU or you need to lease some machine time from the cloud.

Sign in to comment.

Categories

Products

Release

R2024b

Asked:

on 24 Mar 2025

Commented:

on 24 Mar 2025

Community Treasure Hunt

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

Start Hunting!