E
E
Eugene Lerner2021-10-18 12:50:02
GPGPU
Eugene Lerner, 2021-10-18 12:50:02

Which GPU memory is faster, global or constant?

Hello! Of course, the ratios are different for different video cards, we can speak on average.
Which memory is faster and by how much?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-10-18
@vabka

https://habr.com/ru/post/55461/

Global - the slowest
Constant - one of the fastest

In what respect faster - FIG knows. Try to write a benchmark that calculates throughput.
As I understand it, if you can not use global memory, it is better not to use it.

R
rPman, 2021-10-18
@rPman

The memory in a video card is not one single block, but a bunch of small ones tied (and even then not linearly) to their processor cores.
It is difficult to understand without understanding the logic of your code when and what will be faster, for example, sequential reading and the same sequential writing are the fastest in the mind, but random access is not as efficient as possible (by an order of magnitude).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question