From 8b4f4ac167fd57284cebf38746bf571a52cf3a0f Mon Sep 17 00:00:00 2001 From: Mengchi Zhang Date: Tue, 9 Jul 2019 23:51:17 -0400 Subject: Move g_rpts Signed-off-by: Mengchi Zhang --- src/cuda-sim/cuda-sim.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/cuda-sim/cuda-sim.h') diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h index aa1fe40..0a1401a 100644 --- a/src/cuda-sim/cuda-sim.h +++ b/src/cuda-sim/cuda-sim.h @@ -120,6 +120,13 @@ void print_ptxinfo(); void clear_ptxinfo(); struct gpgpu_ptx_sim_info get_ptxinfo(); +class gpgpu_recon_t; +struct rec_pts { + gpgpu_recon_t *s_kernel_recon_points; + int s_num_recon; +}; + + class cuda_sim { public: cuda_sim( gpgpu_context* ctx ) { @@ -149,6 +156,7 @@ class cuda_sim { std::map g_const_name_lookup; // indexed by hostVar int g_ptx_sim_mode; // if non-zero run functional simulation only (i.e., no notion of a clock cycle) unsigned gpgpu_param_num_shaders; + class std::map g_rpts; // backward pointer class gpgpu_context* gpgpu_ctx; //global functions @@ -165,6 +173,8 @@ class cuda_sim { void gpgpu_ptx_sim_register_const_variable(void*, const char *deviceName, size_t size ); void read_sim_environment_variables(); void set_param_gpgpu_num_shaders(int num_shaders); + struct rec_pts find_reconvergence_points( function_info *finfo ); + address_type get_converge_point( address_type pc ); }; #endif -- cgit v1.3