How to run matlab on GPU

48 Ansichten (letzte 30 Tage)
Jingqi Sun
Jingqi Sun am 3 Dez. 2022
Beantwortet: Walter Roberson am 3 Dez. 2022
Hi, how can I run matlab on GPU? I know the matlab should automately run on GPU but there might be something wrong with my laptop. I am sure GPU is not running at all when I run programs in matlab. What should I do?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Dez. 2022
MATLAB itself cannot run on the GPU.
If you have an appropriate GPU, and you have the Parallel Computing Toolbox, then MATLAB can run some functions on the GPU -- sending the GPU data and instructions about what is to be computed, waiting for completion, and pulling back the results. Only a subset of functions have been programmed for the GPU so far.
In order for GPU use to be a possibility, you need to be running Windows or Linux, and you need to be using a later-model NVIDIA GPU card. There is no support for Intel or AMD GPUs, only NVIDIA. No support for Apple's M1/M2 GPUs either. (It is likely to be several years before there is any support for any GPU other than NVIDIA.)

Weitere Antworten (1)

the cyclist
the cyclist am 3 Dez. 2022
I'm not sure what you mean by "automatically". I would start with the documentation page on how to Run MATLAB Functions on a GPU, and make sure you are following those steps.
Also, make sure the Parallel Computing Toolbox is installed.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by