Alpaka: Is it useful to store the kernel functor in constant device memory?

Created on 15 Apr 2018  路  2Comments  路  Source: alpaka-group/alpaka

Is it beneficial to copy the functor given to alpaka into const memory before calling it in the __global__ function?
This stackoverflow answer says that it might have been useful for Compute Capability 1.x but is automatically done in newer versions.
The 9.1 CUDA Programming Guide says that this is true.
However, KOKKOS is doing it manually.

Question

Most helpful comment

As written above, it is already copied into constant device memory for compute capability 2.0 and greater.
Therefore I will close this ticket.

All 2 comments

As I know it is a good workaround to avoid the 256byte limit for kernel paramaters.
I also thought if we should do it but I have currently no time to evaluate the dis/adantages.

As written above, it is already copied into constant device memory for compute capability 2.0 and greater.
Therefore I will close this ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jkelling picture jkelling  路  3Comments

ax3l picture ax3l  路  3Comments

jkelling picture jkelling  路  4Comments

SimeonEhrig picture SimeonEhrig  路  5Comments

BenjaminW3 picture BenjaminW3  路  3Comments