Skip to content

Commit f6ff24d

Browse files
adding file name and line number to ease debug (#601)
1 parent 460cfa4 commit f6ff24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/matx/core/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ namespace matx
225225
#define MATX_CUDA_CHECK(e) \
226226
if (e != cudaSuccess) \
227227
{ \
228-
fprintf(stderr, "CUDA Error: %s\n", cudaGetErrorString(e)); \
228+
fprintf(stderr, "%s:%d CUDA Error: %s\n", __FILE__,__LINE__, cudaGetErrorString(e)); \
229229
MATX_THROW(matx::matxCudaError, cudaGetErrorString(e)); \
230230
}
231231

0 commit comments

Comments
 (0)