How to use shared memory between kernel call of CUDA?

后端 未结 3 814
眼角桃花
眼角桃花 2021-01-24 09:43

I want to use shared memory between kernel call of one kernel. Can I use shared memory between kernel call?

3条回答
  •  再見小時候
    2021-01-24 10:23

    Take a try of page-locked memory, but the speed should be much slower than graphic memory. cudaHostAlloc (void **ptr, size_t size, cudaHostAllocMapped); then send the ptr to the kernel code.

提交回复
热议问题