This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/81177] Dump cubin module to file before offloading in nvptx libgomp plugin
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Jun 2017 15:19:30 +0000
- Subject: [Bug libgomp/81177] Dump cubin module to file before offloading in nvptx libgomp plugin
- Auto-submitted: auto-generated
- References: <bug-81177-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81177
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 41613
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41613&action=edit
Tentative patch
Creates plugin-nvptx.cubin. This file can be inspected using cuobjdump
--dump-sass (or nvdisasm).
We want the file only to be dumped when debugging (maybe we can enable this for
gomp_debug_var >= 2), but I don't think gomp_debug_var is available in the
plugin yet.
A step further would be to call cuobjdump or nvdisasm from the plugin.