From 233aa6826befc31aa6df6851c3201f354a09d6ed Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Wed, 20 Mar 2013 18:05:40 -0800 Subject: 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] --- CHANGES | 4 +++- cuobjdump_to_ptxplus/elf.y | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 5630583..3003133 100644 --- a/CHANGES +++ b/CHANGES @@ -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) { -- cgit v1.3