summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cuda-sim/cuda-sim.h2
-rw-r--r--src/cuda-sim/ptx_loader.cc4
-rw-r--r--src/cuda-sim/ptx_loader.h2
3 files changed, 2 insertions, 6 deletions
diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h
index e4d34fe..16eca19 100644
--- a/src/cuda-sim/cuda-sim.h
+++ b/src/cuda-sim/cuda-sim.h
@@ -132,6 +132,7 @@ class cuda_sim {
g_inst_op_classification_stat= NULL;
g_assemble_code_next_pc=0;
g_debug_thread_uid = 0;
+ g_override_embedded_ptx = false;
gpgpu_ctx = ctx;
}
//global variables
@@ -166,6 +167,7 @@ class cuda_sim {
unsigned cdp_latency[5];
unsigned g_assemble_code_next_pc;
int g_debug_thread_uid;
+ bool g_override_embedded_ptx;
// backward pointer
class gpgpu_context* gpgpu_ctx;
//global functions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc
index 891828a..6e36a62 100644
--- a/src/cuda-sim/ptx_loader.cc
+++ b/src/cuda-sim/ptx_loader.cc
@@ -35,10 +35,6 @@
#include <sstream>
#include "../../libcuda/gpgpu_context.h"
-/// globals
-
-bool g_override_embedded_ptx = false;
-
/// extern prototypes
extern int ptx_error( yyscan_t yyscanner, const char *s );
diff --git a/src/cuda-sim/ptx_loader.h b/src/cuda-sim/ptx_loader.h
index decfdc8..5a468da 100644
--- a/src/cuda-sim/ptx_loader.h
+++ b/src/cuda-sim/ptx_loader.h
@@ -49,8 +49,6 @@ class ptxinfo_data{
char* gpgpu_ptx_sim_convert_ptx_and_sass_to_ptxplus(const std::string ptx_str, const std::string sass_str, const std::string elf_str);
};
-
-extern bool g_override_embedded_ptx;
extern int no_of_ptx; //counter to track number of ptx files to be extracted in an application.
#endif