Appropriate usage of cudaGetSymbolAddress and cudaMemcpyToSymbol with global memory?
问题 I am fairly new to CUDA and am familiar with the normal usage of cudaMalloc and cudaMemcpy and also with cudaMemcpyToSymbol for copying to constant memory. However, I have just been given some code which makes frequent use of cudaGetSymbolAddress and cudaMemcpyToSymbol to copy to global memory and I'm not sure why they have chosen to do this instead of cudaMalloc / cudaMemcpy . Would somebody be able to explain when it is advantageous and appropriate to use cudaGetSymbolAddress and