PollyGPUDevicePtr *DevData = malloc(sizeof(PollyGPUDevicePtr));
if (DevData == 0) {
- fprintf(stderr, "Allocate memory for GPU device memory pointer failed.\n");
+ fprintf(stderr,
+ "Allocate memory for GPU device memory pointer failed."
+ " Line: %d | Size: %ld\n",
+ __LINE__, MemSize);
exit(-1);
}
DevData->DevicePtr = (CUDADevicePtr *)malloc(sizeof(CUDADevicePtr));
if (DevData->DevicePtr == 0) {
- fprintf(stderr, "Allocate memory for GPU device memory pointer failed.\n");
+ fprintf(stderr,
+ "Allocate memory for GPU device memory pointer failed."
+ " Line: %d | Size: %ld\n",
+ __LINE__, MemSize);
exit(-1);
}
CuMemAllocFcnPtr(&(((CUDADevicePtr *)DevData->DevicePtr)->Cuda), MemSize);
if (Res != CUDA_SUCCESS) {
- fprintf(stderr, "Allocate memory for GPU device memory pointer failed.\n");
+ fprintf(stderr,
+ "Allocate memory for GPU device memory pointer failed."
+ " Line: %d | Size: %ld\n",
+ __LINE__, MemSize);
exit(-1);
}