I have to change my code from runtime API to driver API.
So, could you tell me what elementSizeBytes means?
CUresult cuMemAllocPitch(CUdeviceptr* devPtr,
unsigned int* pitch,
unsigned int widthInBytes,
unsigned int height,
unsigned int elementSizeBytes);
I think its sizeof(float) if I want to use float.
I just want to be sure.
Another question. Can I do that?
ptr2 = ptr1+N;
I want that ptr2 be a pointer on the N-th cell of ptr1.
I know that it’s possible in C (and very used).