summaryrefslogtreecommitdiff
path: root/libcuda/cuobjdump.y
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.y
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.y')
-rw-r--r--libcuda/cuobjdump.y2
1 files changed, 1 insertions, 1 deletions
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);}
| ;