I just want to use Driver api cuMemAlloc allocate 4 bytes. But The CUDA_ERROR_ILLEGAL_ADDRESS exception happend.
I am curious which situation the allocate api throw CUDA_ERROR_ILLEGAL_ADDRESS. As far as I know, The cuMemAlloc will failed because out of memory. I don’t know the reason lead to illegal address. Please help me.
CUdeviceptr nativeDptr; int result = cuMemAlloc(&nativeDptr, (size_t)4);