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
2024 年 1 月 25 日
編集済み: 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
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!