Skip to content

Commit 947d5de

Browse files
committed
print cuda_error_string
1 parent 8d074ed commit 947d5de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ffCudaNn.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ namespace ff
5252
if (_dataGpu) cudaFree(_dataGpu);
5353
cudaError_t err = cudaMalloc(&_dataGpu, _dataGpuSize * sizeof(float));
5454
assert(err == cudaSuccess);
55+
//printf("%s\n", cudaGetErrorName(cudaGetLastError()));
56+
//printf("%s\n", cudaGetErrorString(cudaGetLastError()));
5557
}
5658
}
5759

0 commit comments

Comments
 (0)