summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rw-r--r--cuobjdump_to_ptxplus/elf.y2
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) {