My codes are like:
cudaMemset(device_a, FLT_MAX, SIZE);
I found that cudaMemset doesnt work at all.
In the cuda guide doc appendix:
CUresult cuMemsetD32(CUdeviceptr dstDevice,unsigned int value, unsigned int count);
However if I try cuMemsetD32(device_a, FLT_MAX, SIZE);
It says can’t convert float* to CUdeviceptr
Anyone knows the way to do this?