From be40c844e8a92ebe8ff3569451a7649712563052 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Fri, 10 Aug 2012 22:41:06 -0800 Subject: 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] --- libcuda/cuobjdump.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcuda/cuobjdump.l') 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}+
"has debug info"{newline} /* Looking for the identifier (filename) then the header is done */ -[[:alnum:]_\.]+{newline} yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; +[[:alnum:]_\.]+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; {newline} return NEWLINE; -- cgit v1.3