From 6eb2c84753d4538ef6ee6ee27802bff9adbbefab Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Mon, 9 Aug 2010 00:36:06 -0800 Subject: refactor: remove extern decl up to gpgpusim_entrypoint.cc [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7178] --- src/cuda-sim/cuda-sim.cc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/cuda-sim/cuda-sim.cc') diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index a55fb79..9d62a59 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -80,20 +80,17 @@ #include "ptx_loader.h" #include "ptx_parser.h" #include "../gpgpu-sim/gpu-sim.h" - -extern bool g_interactive_debugger_enabled; +#include "ptx_sim.h" +#include "../gpgpusim_entrypoint.h" int gpgpu_ptx_instruction_classification=0; void ** g_inst_classification_stat = NULL; void ** g_inst_op_classification_stat= NULL; int g_ptx_kernel_count = -1; // used for classification stat collection purposes - int g_debug_execution = 0; int g_debug_thread_uid = 0; addr_t g_debug_pc = 0xBEEF1518; - unsigned g_ptx_sim_num_insn = 0; - std::map TextureToArrayMap; // texture bindings std::map TextureToInfoMap; std::map NameToTextureMap; @@ -1115,7 +1112,6 @@ void init_inst_classification_stat() { std::map *g_kernel_name_to_function_lookup=NULL; std::map *g_host_to_kernel_entrypoint_name_lookup=NULL; -extern unsigned g_ptx_thread_info_uid_next; void gpgpu_cuda_ptx_sim_init_grid( const char *kernel_key, struct gpgpu_ptx_sim_arg* args, struct dim3 gridDim, struct dim3 blockDim ) @@ -1388,13 +1384,6 @@ void read_sim_environment_variables() } } - - - - - -extern time_t g_simulation_starttime; - ptx_cta_info *g_func_cta_info = NULL; #define MAX(a,b) (((a)>(b))?(a):(b)) -- cgit v1.3