Usage of CUDA.Const

With Const we emit loads that use a different GPU cache level (read-only texture cache instead of L1/L2), which used to be much faster. Modern hardware has much faster L1/L2 caches, resulting in ldg being much less relevant than it used to be. So depending on your hardware, this is expected.

1 Like