summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
committerMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
commitcb678c3670de4a435a3260ed80dc476da3860082 (patch)
tree99b062689fec2edc94c4af9e10efae9686b24c40 /src/cuda-sim/ptx_parser.cc
parent3ced1e68b56c8dfae3bd98e0ede6241e31cefaa2 (diff)
Move g_debug_ir_generation and GPGPUSim_Init
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_parser.cc')
-rw-r--r--src/cuda-sim/ptx_parser.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc
index 2872b84..9094ec3 100644
--- a/src/cuda-sim/ptx_parser.cc
+++ b/src/cuda-sim/ptx_parser.cc
@@ -48,7 +48,6 @@ void set_ptx_warp_size(const struct core_config * warp_size)
g_shader_core_config=warp_size;
}
-static bool g_debug_ir_generation=false;
const char *g_filename;
// the program intermediate representation...
@@ -70,7 +69,7 @@ const char *decode_token( int type )
return g_ptx_token_decode[type].c_str();
}
-void read_parser_environment_variables()
+void ptx_recognizer::read_parser_environment_variables()
{
g_filename = getenv("PTX_SIM_KERNELFILE");
char *dbg_level = getenv("PTX_SIM_DEBUG");