Matab is very slow in processing figures: might it be caused by NVidia Optimus?

조회 수: 5 (최근 30일)
Hi all,
I have a laptop with the following configuration:
CPU: i7-11850H
RAM: 32GB
GPUs: Intel UHD graphics and NVIDIA RTX A2000
I notice that my laptos is pretty slow especially when managing figures. Indeed, by running bench command, the relative speed is 5.78 (this is the output of bench command 0.8408 0.3923 0.3292 0.6592 6.4034 7.0999) and my system lag hugely with respect the reference machines in 2-D and 3-D performance. When running bench command, the CPU usage peaked 18%. From this data, I believe that my system mostly run with Intel graphics rather on on my NVidia. Is that possible to verify which GPU card is running when Matlab is processing?
Thanks for your help.

채택된 답변

Joss Knight
Joss Knight 2024년 6월 16일
Check your laptop's power settings and make sure they are in 'best performance' mode.
  댓글 수: 1
Serbring
Serbring 2024년 6월 16일
you on right, for reducing the fan noise and temperature, I reduced the max CPU load to 90%. I did it a year ago and I forgot this setting. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ayush Singh
Ayush Singh 2024년 6월 11일
Hi Serbring,
In order to see which GPU MATLAB is using you can run the following command:
gpuDevice
The 'gpuDevice' function is the primary way to obtain information about the GPU being used by MATLAB. When called without arguments, it returns an object containing information about the currently selected GPU.
For more information on above function, refer following documentation:
  댓글 수: 10
Serbring
Serbring 2024년 6월 16일
I have solved the issue by running the following
opengl hardware
From bench, I see a huge improvement 2D and 3D. What I still do not understand, is that my colleague using the same laptop (with the same hardware) obtains significant better results. However, he uses Matlab r2023a instead I use R2023b. Might it be such large difference between two Matlab versions?
Thanks again.
Joss Knight
Joss Knight 2024년 6월 16일
This nothing to do with MATLAB, it is your operating system's graphics acceleration settings. You probably have different power settings than your colleague.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by