diff options
| author | Tayler Hetherington <[email protected]> | 2013-03-20 18:05:40 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:06 -0700 |
| commit | 233aa6826befc31aa6df6851c3201f354a09d6ed (patch) | |
| tree | 72bab4a40d6d3b79976d9ae7372d25f42596228b | |
| parent | b4b5ceba1150347a2059e75bf0fe43c93ea9163a (diff) | |
Fix for bug 47 - only comparing ".nv.global", ignoring trailing characters (such as ".nv.global.init")
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15562]
| -rw-r--r-- | CHANGES | 4 | ||||
| -rw-r--r-- | cuobjdump_to_ptxplus/elf.y | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -69,7 +69,9 @@ Version 3.2.0+edits (development branch) versus 3.2.0 reset when a kernel completes. - Fixed implementation for mov.pred with literal input (need to explicitly treat zero as false and non-zero as true). - + - Fix for bug 47 - Issue with generating PTXPLUS with global __device__ + variables: Expecting ".nv.global", provided ".nv.global.init". + Version 3.2.0 versus 3.1.2 - Added GPUWattch GPGPU power model based on McPAT 0.8beta. diff --git a/cuobjdump_to_ptxplus/elf.y b/cuobjdump_to_ptxplus/elf.y index fe471da..d620078 100644 --- a/cuobjdump_to_ptxplus/elf.y +++ b/cuobjdump_to_ptxplus/elf.y @@ -58,7 +58,7 @@ stcontent : stcontent stline | stline; stline : NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER IDENTIFIER { - if (strcmp($7, ".nv.global")==0) { + if(strncmp( $7, ".nv.global", 10)==0) { g_instList->setglobalVarShndx($6); } if (strcmp($4, "11")==0) { |
