For those cuda functions which are only going to be called from device, does it matter in terms of performance if we declare them __ global __ or __ device __ ?
Your question makes no sense - you can't call __global__functions from device code in CUDA. Kernels cannot launch other kernels.
- talonmies
Thanks for the clarification. I see.
- user1118148
1 Answers
1
votes
As of CUDA 4.1, __global__ functions cannot be called from __device__ functions.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
__global__functions from device code in CUDA. Kernels cannot launch other kernels. - talonmies