Inline CUDA device functions.