pub const cudaErrorMemoryAllocation: cudaError = 2;
The API call failed because it was unable to allocate enough memory or other resources to perform the requested operation.