Is there any way to get a kernel variable from host without writing it to global memory first?
Pass it as an argument.
No I mean to get a variable created in the kernel.
no, you need to transfer it from global memory to the host.
General question here…
If you pass arguments through the kernel function,
those passed-in variables are loaded into registers, right ?
Do those passed-in variables go through GPU-global memory ?
They’re loaded into shared memory.