summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authorMahmoud Khairy A. Abdallah <[email protected]>2020-03-31 13:00:34 -0400
committerMahmoud Khairy A. Abdallah <[email protected]>2020-03-31 13:00:34 -0400
commited97d2a5b0096fb8afa4bc83fe2df515b2a2399c (patch)
tree2afd8adc73d93479eab95ae01d01db53aa038653 /src/gpgpu-sim/shader.cc
parent38a5c4d70539cdacf1ce20394027d9b705ff9c76 (diff)
adding inst fetch throughput
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index a2850d0..297f3bc 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -3175,10 +3175,9 @@ void shader_core_ctx::cycle()
execute();
read_operands();
issue();
- for(int i=0; i<8; ++i) {
- decode();
- fetch();
- printf("Hello! \n");
+ for(int i=0; i< m_config->inst_fetch_throughput; ++i) {
+ decode();
+ fetch();
}
}
@@ -3235,6 +3234,7 @@ std::list<opndcoll_rfu_t::op_t> opndcoll_rfu_t::arbiter_t::allocate_reads()
///// wavefront allocator from booksim... --->
// Loop through diagonals of request matrix
+ printf("####\n");
for ( int p = 0; p < _square; ++p ) {
output = ( _pri + p ) % _square;
@@ -3250,6 +3250,7 @@ std::list<opndcoll_rfu_t::op_t> opndcoll_rfu_t::arbiter_t::allocate_reads()
// Grant!
_inmatch[input] = output;
_outmatch[output] = input;
+ printf("Register File: granting banks %d to OC % \n", input, output);
}
output = ( output + 1 ) % _square;