Message ID | 20200922113945.GA4471@delia |
---|---|
State | New |
Headers | show |
Series | [committed,libgomp,nvptx] Print error log for link error | expand |
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index 390804ad1fa..a63dd1a99fb 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -701,6 +701,7 @@ link_ptx (CUmodule *module, const struct targ_ptx_obj *ptx_objs, if (r != CUDA_SUCCESS) { + GOMP_PLUGIN_error ("Link error log %s\n", &elog[0]); GOMP_PLUGIN_error ("cuLinkComplete error: %s", cuda_error (r)); return false; }