Under what circumstances can the cuda driver interface not be called?

cuDeviceGetName cuDeviceGetName 304
cuDeviceTotalMem cuDeviceTotalMem Cuda driver error 2 in call at file
cuDeviceGetAttribute cuDeviceGetAttribute 304
cuCtxCreate : ERROR on proc 0 ,Cuda driver error 2 in call at file
cuMemAlloc : ERROR on proc 0:,Cuda driver error 2 in call at file
cuMemHostAlloc : ERROR on proc 0 ,Cuda driver error 2 in call at file
cuMemAllocHost : ERROR on proc 0 ,Cuda driver error 2 in call at file

02 means out of memry, But acturally , my itotal memorys 80G, and the video memory is 800G, only 400M is used, and the remaining memory and video memory are still sufficient.

Best regards!
Looking forward to your reply, Thanks so much!

CUDA error 304 means an operating system call failed. (from driver_types.h)

You can google for examples of situations in which this may occur. Here is an example.