I have several kernels that are called many times (300-500) by a C program. Right now, each time the kernel runs, it sets constant values using cudaMemcpyToSymbol.
Just wondering if I can just do this once before I being the big loop.
Also, I noticed that separate kernels can’t have the same constant variables names so are device constants like globals? However, I couldn’t figure out how to share the same device constant among different kernels (ie: like a constants.h).
Thanks in advance.