From d76311457b6a860998f8ecaf92f755f43ef32189 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Mon, 17 Dec 2012 12:02:02 -0800 Subject: cleaning the duty_cycle_stats collection code in the writeback stage [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14828] --- src/gpgpu-sim/shader.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/gpgpu-sim/shader.h') diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index 047f4da..d7ba018 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -1140,7 +1140,6 @@ struct shader_core_config : public core_config struct shader_core_stats_pod { - unsigned long long **inst_per_cycle; unsigned long long *shader_cycles; unsigned *m_num_sim_insn; // number of scalar thread instructions committed by this shader core unsigned *m_num_sim_winsn; // number of warp instructions committed by this shader core @@ -1232,11 +1231,6 @@ public: m_config = config; shader_core_stats_pod *pod = this; memset(pod,0,sizeof(shader_core_stats_pod)); - - inst_per_cycle=(unsigned long long **) calloc(6,sizeof(unsigned long long *)); - for(unsigned i=0;i<6;i++){ - inst_per_cycle[i]=(unsigned long long *) calloc(config->num_shader(),sizeof(unsigned long long )); - } shader_cycles=(unsigned long long *) calloc(config->num_shader(),sizeof(unsigned long long )); m_num_sim_insn = (unsigned*) calloc(config->num_shader(),sizeof(unsigned)); m_num_sim_winsn = (unsigned*) calloc(config->num_shader(),sizeof(unsigned)); @@ -1380,11 +1374,6 @@ public: m_kernel->name().c_str() ); } - float roundUp(float num){ - return (int)num+((num-(int)(num)>0)?0.5:0.0); - } - - // accessors bool fetch_unit_response_buffer_full() const; bool ldst_unit_response_buffer_full() const; @@ -1411,7 +1400,7 @@ public: void store_ack( class mem_fetch *mf ); bool warp_waiting_at_mem_barrier( unsigned warp_id ); void set_max_cta( const kernel_info_t &kernel ); - void warp_inst_complete(const warp_inst_t &inst,bool memory); + void warp_inst_complete(const warp_inst_t &inst); // accessors std::list get_regs_written( const inst_t &fvt ) const; -- cgit v1.3