Difference between global and device functions

后端 未结 9 1614
渐次进展
渐次进展 2021-01-29 20:10

Can anyone describe the differences between __global__ and __device__ ?

When should I use __device__, and when to use __glob

9条回答
  •  -上瘾入骨i
    2021-01-29 21:01

    Global Function can only be called from the host and they don't have a return type while Device Function can only be called from kernel function of other Device function hence dosen't require kernel setting

提交回复
热议问题