summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.h
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-12-17 12:02:02 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:23 -0700
commitd76311457b6a860998f8ecaf92f755f43ef32189 (patch)
tree1a7c561b0c9b8df8f27330e909ce8ffbc3608f9b /src/gpgpu-sim/shader.h
parente364e965be7ccb8d89c3eddf7737fcae8bbffbb1 (diff)
cleaning the duty_cycle_stats collection code in the writeback stage
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14828]
Diffstat (limited to 'src/gpgpu-sim/shader.h')
-rw-r--r--src/gpgpu-sim/shader.h13
1 files changed, 1 insertions, 12 deletions
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<unsigned> get_regs_written( const inst_t &fvt ) const;