Is correct to declare __shared__ a variable (not pointer/array) in CUDA (C) kernel?

前端 未结 0 1260
深忆病人
深忆病人 2021-01-15 19:08

In my kernel function I defined:

__shared__ float shared_var;

which is not a pointer/array (as it is shown in examples NVIDIA docs). Then I initia

相关标签:
回答
  • 消灭零回复
提交回复
热议问题