I am new to cuda driver Api interface but I think that CUdeviceptr looks like a handle parameter.So I confused about the convertion between CUdeviceptr and npp8u *.
Npp8u * src;
......
unsigned char temp;
temp = src;
CUdeviceptr devPtr;
.......
devPtr = (CUdeviceptr)temp;
I try to write the convertion like above,is that right!
Typically you wouldn't do this explicitly, but rather cast Npp8u* to a void ** when passing to cudaMalloc: