summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda-sim.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-08 15:45:05 -0400
committerMengchi Zhang <[email protected]>2019-07-08 15:45:05 -0400
commit8f6668941cf2728dba9700e45f11f61401a1fcf4 (patch)
tree91527bc9053638117506a5caa2694294e796e67c /src/cuda-sim/cuda-sim.h
parent7c13f6c7cc7fd598b268810c903983b79606f3ca (diff)
Move g_ptx_sim_num_insn
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/cuda-sim.h')
-rw-r--r--src/cuda-sim/cuda-sim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h
index 76450dc..4566dc2 100644
--- a/src/cuda-sim/cuda-sim.h
+++ b/src/cuda-sim/cuda-sim.h
@@ -134,11 +134,15 @@ struct gpgpu_ptx_sim_info get_ptxinfo();
class cuda_sim {
public:
+ cuda_sim() {
+ g_ptx_sim_num_insn = 0;
+ }
//global variables
char *opcode_latency_int;
int cp_count;
int cp_cta_resume;
int g_ptxinfo_error_detected;
+ unsigned g_ptx_sim_num_insn;
//global functions
void ptx_opcocde_latency_options (option_parser_t opp);
void gpgpu_cuda_ptx_sim_main_func( kernel_info_t &kernel, bool openCL = false );