cuobjdump is the utility that may be used to examine the binaries
generated by CUDA. In particular, it is useful for examining the
microcode generated by nvcc: specify the --cubin parameter to nvcc to
generate a .cubin file, then use
cuobjdump --dump-sass <filename.cubin>
to dump the disassembled microcode from the .cubin file.
The complete list of command-line options for cuobjdump is given in
Table 4-10.
| Option | Description |
|---|---|
( |
Dump all fatbin sections. By default, will only dump the contents of executable fatbin; if there is no executable fatbin, dumps the contents of the relocatable fatbin. |
( |
Dump cubin for all listed device functions. |
( |
Dump ELF Object sections. |
( |
Dump ELF symbol names. |
( |
Dump names of device functions. This option is implied if options
--dump-sass, --dump-cubin or --dump-ptx are given. |
( |
Dump PTX for all listed device functions. |
( |
Dump disassembly for all listed device functions. |
( |
Specify names of source files whose fat binary structures must be
dumped. Source files may be specified by the full path by which they
were compiled with nvcc, by filename only, or by base filename (with no
file extension). |
( |
Specify names of device functions whose fat binary structures must be dumped. |
( |
Print this help information on this tool. |
( |
Include command line options from specified file. |
( |
Sort functions when dumping SASS. |
( |
Print version information on this tool. |
Table 4-10. cuobjdump command-line options