summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-02-09 14:58:14 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:04 -0700
commite4d7bf562e8e90fa4523efc186322bff416c0506 (patch)
treee770f274df3bc2d2002d8ec141c6e2ca865f29c1 /src/gpgpu-sim
parentdb6ea8d4b4a2262e4d830c034a7dd220b7669ffe (diff)
Fixing a slew of compiler warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218]
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/dram_sched.cc2
-rw-r--r--src/gpgpu-sim/l2cache.h1
-rw-r--r--src/gpgpu-sim/shader.cc14
3 files changed, 15 insertions, 2 deletions
diff --git a/src/gpgpu-sim/dram_sched.cc b/src/gpgpu-sim/dram_sched.cc
index e30bd24..2f991c1 100644
--- a/src/gpgpu-sim/dram_sched.cc
+++ b/src/gpgpu-sim/dram_sched.cc
@@ -78,7 +78,6 @@ void frfcfs_scheduler::data_collection(unsigned int bank)
dram_req_t *frfcfs_scheduler::schedule( unsigned bank, unsigned curr_row )
{
- int row_hit = 0;
if ( m_last_row[bank] == NULL ) {
if ( m_queue[bank].empty() )
return NULL;
@@ -95,7 +94,6 @@ dram_req_t *frfcfs_scheduler::schedule( unsigned bank, unsigned curr_row )
}
}
- row_hit=1;
std::list<dram_req_t*>::iterator next = m_last_row[bank]->back();
dram_req_t *req = (*next);
diff --git a/src/gpgpu-sim/l2cache.h b/src/gpgpu-sim/l2cache.h
index 3b25565..9317c18 100644
--- a/src/gpgpu-sim/l2cache.h
+++ b/src/gpgpu-sim/l2cache.h
@@ -142,6 +142,7 @@ private:
class L2interface : public mem_fetch_interface {
public:
L2interface( memory_partition_unit *unit ) { m_unit=unit; }
+ virtual ~L2interface() {}
virtual bool full( unsigned size, bool write) const
{
// assume read and write packets all same size
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 72a1936..8573344 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -830,6 +830,20 @@ void TwoLevelScheduler::cycle() {
break;
}
}
+
+ // tgrogers - fixing a warning about unused variables at the top of this fucntion...
+ // This scheduler has A LOT of copied code from the LRR scheduler.
+ // TODO - this thing really needs to be re-written in a modular way.
+ // For now, to get rid of the warnings I am including the stats epilogue
+ // from the original scheduler function that the author of this function forgot to copy/paste
+ //
+ // issue stall statistics:
+ if( !valid_inst )
+ m_stats->shader_cycle_distro[0]++; // idle or control hazard
+ else if( !ready_inst )
+ m_stats->shader_cycle_distro[1]++; // waiting for RAW hazards (possibly due to memory)
+ else if( !issued_inst )
+ m_stats->shader_cycle_distro[2]++; // pipeline stalled
}
void shader_core_ctx::read_operands()