Skip to content

Commit 83d1868

Browse files
committed
dump source and error message if compilation fail in DEBUG
1 parent 62cf1b9 commit 83d1868

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/gpuarray_buffer_cuda.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,10 @@ static int call_compiler(cuda_context *ctx, strb *src, strb *ptx, strb *log) {
11031103

11041104
if (err != NVRTC_SUCCESS) {
11051105
nvrtcDestroyProgram(&prog);
1106+
#ifdef DEBUG
1107+
strb_dump(src, stderr);
1108+
strb_dump(log, stderr);
1109+
#endif
11061110
return error_nvrtc(ctx->err, "nvrtcCompileProgram", err);
11071111
}
11081112

0 commit comments

Comments
 (0)