The GPU does not improve the performance as in the example shown in Matlab

8 次查看(过去 30 天)
Hello,
As part of a task we are currently performing, we are required to use a GPU to speed up the calculations.
The tests are performed by using NVIDIA T1000 GPU (4 GB).
In order to test the runtimes achieved using the GPU, we ran this code in MathWorks:
There is a gap between the results we got and the results in the example (the results are attached).
In the unvectorized case (blue) the run times we obtained by using a GPU are significantly higher than the run times obtained by using a CPU, although in the example similar times were obtained in both modes.
In addition, in the vectorized case (orange) the difference we obtained between the CPU and the GPU is significantly lower compared to the difference obtained in the example.
We can conclude that the effect of the GPU in our case is not so significantly felt, and this is also evident in other more complex examples that we tested.
I would like to emphasize that the latest versions of the GPU and CUDA have been installed, and it seems that there is no memory problem that prevents these operations from being performed in the optimal way.
What could be the reason for this?
Thank you,
Nadav
  3 个评论
Abhishek Kumar Singh
编辑:Abhishek Kumar Singh 2024-1-25
@Avi This is a quite unique instance. I ran it on RTX 4080 and got the expected results.
Can you please share output of gpuDevice when executed in command window?

请先登录,再进行评论。

回答(1 个)

Ravi
Ravi 2024-1-31
Hi Avi,
The graphics processing capabilities of the NVIDIA T1000 currently in use do not quite match the more robust performance parameters of the NVIDIA RTX A5000 as highlighted in the provided example. For example, the T1000 has a peak single precision performance of 2500 GFLOPS, while the RTX A5000 has an estimated peak performance of 21,700 GFLOPS. The disparity in performance is quite pronounced and may account for the observed variance in acceleration between the vectorized version when conducting a comparative analysis of CPU versus GPU performance across the two graphics processing units.
Hope this answers your question.
Thanks,
Ravi

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by