How to use shared memory between kernel call of CUDA?

后端 未结 3 820
眼角桃花
眼角桃花 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:11

    No, you can't. Shared memory has thread block life-cycle. A variable stored in it can be accessible by all the threads belonging to one group during one __global__ function invocation.

提交回复
热议问题