This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/81177] Dump cubin module to file before offloading in nvptx libgomp plugin


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]