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.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcuda/cuobjdump.y') diff --git a/libcuda/cuobjdump.y b/libcuda/cuobjdump.y index 914a3d6..b8e9c11 100644 --- a/libcuda/cuobjdump.y +++ b/libcuda/cuobjdump.y @@ -95,7 +95,7 @@ headerinfo : H_SEPARATOR NEWLINE H_PRODUCER IDENTIFIER NEWLINE H_HOST IDENTIFIER NEWLINE H_COMPILESIZE IDENTIFIER NEWLINE - H_IDENTIFIER FILENAME {setCuobjdumparch($4); setCuobjdumpidentifier($19);}; + H_IDENTIFIER FILENAME emptylines {setCuobjdumparch($4); setCuobjdumpidentifier($19);}; ptxcode : ptxcode PTXLINE {fprintf(ptxfile, "%s", $2);} | ; -- cgit v1.3