From de72e36619350f9b3e3a3dc8de63b490c4cecf2d Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Wed, 26 Oct 2016 22:48:28 -0400 Subject: gpu-compute: support in-order data delivery in GM pipe this patch adds an ordered response buffer to the GM pipeline to ensure in-order data delivery. the buffer is implemented as a stl ordered map, which sorts the request in program order by using their sequence ID. when requests return to the GM pipeline they are marked as done. only the oldest request may be serviced from the ordered buffer, and only if is marked as done. the FIFO response buffers are kept and used in OoO delivery mode --- configs/example/apu_se.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configs/example') diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index b8ec149d5..5ec3289d2 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -153,7 +153,9 @@ parser.add_option('--fast-forward-pseudo-op', action='store_true', help = 'fast forward using kvm until the m5_switchcpu' ' pseudo-op is encountered, then switch cpus. subsequent' ' m5_switchcpu pseudo-ops will toggle back and forth') - +parser.add_option('--outOfOrderDataDelivery', action='store_true', + default=False, help='enable OoO data delivery in the GM' + ' pipeline') Ruby.define_options(parser) @@ -248,7 +250,9 @@ for i in xrange(n_cu): localDataStore = \ LdsState(banks = options.numLdsBanks, bankConflictPenalty = \ - options.ldsBankConflictPenalty))) + options.ldsBankConflictPenalty), + out_of_order_data_delivery = + options.outOfOrderDataDelivery)) wavefronts = [] vrfs = [] for j in xrange(options.simds_per_cu): -- cgit v1.2.3