summaryrefslogtreecommitdiff
path: root/libcuda/cuobjdump.l
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-08-10 22:41:06 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:53 -0700
commitbe40c844e8a92ebe8ff3569451a7649712563052 (patch)
tree37bd8da8ac10e4c8c58bde93986e10f706c58aa0 /libcuda/cuobjdump.l
parent1838cb8867ccef47d648e2813932a373829f047d (diff)
Adding a less brittle support for associating the fatbins to sections in the output of cuobjdump
This is how to get to the filename given a fatCubin void* void * s1 = *((void**)(fatCubin+8)); void * s2 = (s1+72); char * filename = (char *)s2; [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13728]
Diffstat (limited to 'libcuda/cuobjdump.l')
-rw-r--r--libcuda/cuobjdump.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcuda/cuobjdump.l b/libcuda/cuobjdump.l
index fb9a60a..e782c17 100644
--- a/libcuda/cuobjdump.l
+++ b/libcuda/cuobjdump.l
@@ -107,7 +107,7 @@ newlines {newline}+
<header>"has debug info"{newline}
/* Looking for the identifier (filename) then the header is done */
-<endheader>[[:alnum:]_\.]+{newline} yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME;
+<endheader>[[:alnum:]_\.]+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME;
{newline} return NEWLINE;