Presentation is loading. Please wait.

Presentation is loading. Please wait.

HiDISC: A Decoupled Architecture for Applications in Data Intensive Computing PIs: Alvin M. Despain and Jean-Luc Gaudiot USC UNIVERSITY OF SOUTHERN CALIFORNIA.

Similar presentations


Presentation on theme: "HiDISC: A Decoupled Architecture for Applications in Data Intensive Computing PIs: Alvin M. Despain and Jean-Luc Gaudiot USC UNIVERSITY OF SOUTHERN CALIFORNIA."— Presentation transcript:

1 HiDISC: A Decoupled Architecture for Applications in Data Intensive Computing PIs: Alvin M. Despain and Jean-Luc Gaudiot USC UNIVERSITY OF SOUTHERN CALIFORNIA University of Southern California http://www-pdpc.usc.edu May 2001

2 USC Parallel and Distributed Processing Center 2 Outline n HiDISC Project Description n Experiments and Accomplishments n Work in Progress n Summary

3 USC Parallel and Distributed Processing Center 3 HiDISC: Hierarchical Decoupled Instruction Set Computer Dynamic Database Memory Cache Registers Application (FLIR SAR VIDEO ATR /SLD Scientific ) Application (FLIR SAR VIDEO ATR /SLD Scientific ) Processor Decoupling Compiler HiDISC Processor Sensor Inputs Processor Situational Awareness Technological Trend: Memory latency is getting longer relative to microprocessor speed (40% per year) Problem: Some SPEC benchmarks spend more than half of their time stalling Domain: benchmarks with large data sets: symbolic, signal processing and scientific programs Present Solutions: Multithreading (Homogenous), Larger Caches, Prefetching, Software Multithreading

4 USC Parallel and Distributed Processing Center 4 Present Solutions Solution Larger Caches Hardware Prefetching Software Prefetching Multithreading Limitations —Slow —Works well only if working set fits cache and there is temporal locality. —Cannot be tailored for each application —Behavior based on past and present execution- time behavior —Ensure overheads of prefetching do not outweigh the benefits > conservative prefetching —Adaptive software prefetching is required to change prefetch distance during run-time —Hard to insert prefetches for irregular access patterns —Solves the throughput problem, not the memory latency problem

5 USC Parallel and Distributed Processing Center 5 Observation: Software prefetching impacts compute performance PIMs and RAMBUS offer a high-bandwidth memory system - useful for speculative prefetching The HiDISC Approach Approach: Add a processor to manage prefetching -> hide overhead Compiler explicitly manages the memory hierarchy Prefetch distance adapts to the program runtime behavior

6 USC Parallel and Distributed Processing Center 6 Cache What is HiDISC? A dedicated processor for each level of the memory hierarchy n Explicitly manage each level of the memory hierarchy using instructions generated by the compiler n Hide memory latency by converting data access predictability to data access locality (Just in Time Fetch) n Exploit instruction-level parallelism without extensive scheduling hardware n Zero overhead prefetches for maximal computation throughput Access Instructions Computation Instructions Access Processor (AP) Access Processor (AP) Computation Processor (CP) Computation Processor (CP) Registers Cache Mgmt. Processor (CMP) Cache Mgmt. Processor (CMP) Cache Mgmt. Instructions CompilerProgram 2nd-Level Cache and Main Memory

7 USC Parallel and Distributed Processing Center 7 MIPS DEAP CAPPHiDISC (Conventional)(Decoupled)(New Decoupled) 2nd-Level Cache and Main Memory Registers 5-issue Cache Access Processor (AP) - (3-issue) Access Processor (AP) - (3-issue) 2-issue Cache Mgmt. Processor (CMP) Registers Access Processor (AP) - (5-issue) Access Processor (AP) - (5-issue) Computation Processor (CP) Computation Processor (CP) 3-issue 2nd-Level Cache and Main Memory Registers 8-issue Registers 3-issue Cache Mgmt. Processor (CMP) DEAP: [Kurian, Hulina, & Caraor ‘94] PIPE: [Goodman ‘85] Other Decoupled Processors: ACRI, ZS-1, WM Cache 2nd-Level Cache and Main Memory 2nd-Level Cache and Main Memory 2nd-Level Cache and Main Memory Computation Processor (CP) Computation Processor (CP) Computation Processor (CP) Computation Processor (CP) Computation Processor (CP) Computation Processor (CP) Cache Decoupled Architectures SCQ LQ SDQSAQ

8 USC Parallel and Distributed Processing Center 8 Slip Control Queue n The Slip Control Queue (SCQ) adapts dynamically Late prefetches = prefetched data arrived after load had been issued Useful prefetches = prefetched data arrived before load had been issued if (prefetch_buffer_full ()) Don’t change size of SCQ; else if ((2*late_prefetches) > useful_prefetches) Increase size of SCQ; else Decrease size of SCQ;

9 USC Parallel and Distributed Processing Center 9 Decoupling Programs for HiDISC (Discrete Convolution - Inner Loop) for (j = 0; j < i; ++j) y[i]=y[i]+(x[j]*h[i-j-1]); while (not EOD) y = y + (x * h); send y to SDQ for (j = 0; j < i; ++j) { load (x[j]); load (h[i-j-1]); GET_SCQ; } send (EOD token) send address of y[i] to SAQ for (j = 0; j < i; ++j) { prefetch (x[j]); prefetch (h[i-j-1]; PUT_SCQ; } Inner Loop Convolution Computation Processor Code A ccess Processor Code Cache Management Code SAQ: Store Address Queue SDQ: Store Data Queue SCQ: Slip Control Queue EOD: End of Data

10 USC Parallel and Distributed Processing Center 10 Where We Were n HiDISC compiler Frontend selection (Gcc) Single thread running without conditionals n Hand compiling of benchmarks Livermore loops, Tomcatv, MXM, Cholsky, Vpenta and Qsort

11 USC Parallel and Distributed Processing Center 11 Benchmarks Source of Benchmark Lines of Source Code Description Data Set Size LLL1 Livermore Loops [45] 20 1024-element arrays, 100 iterations 24 KB LLL2 Livermore Loops 24 1024-element arrays, 100 iterations 16 KB LLL3 Livermore Loops 18 1024-element arrays, 100 iterations 16 KB LLL4 Livermore Loops 25 1024-element arrays, 100 iterations 16 KB LLL5 Livermore Loops 17 1024-element arrays, 100 iterations 24 KB Tomcatv SPECfp95 [68] 190 33x33-element matrices, 5 iterations <64 KB MXM NAS kernels [5] 113 Unrolled matrix multiply, 2 iterations 448 KB CHOLSKY NAS kernels 156 Cholsky matrix decomposition 724 KB VPENTA NAS kernels 199 Invert three pentadiagonals simultaneously 128 KB Qsort Quicksort sorting algorithm [14] 58 Quicksort 128 KB

12 USC Parallel and Distributed Processing Center 12 ParameterValueParameterValue L1 cache size4 KBL2 cache size16 KB L1 cache associativity2L2 cache associativity2 L1 cache block size32 BL2 cache block size32 B Memory LatencyVariable, (0-200 cycles)Memory contention timeVariable Victim cache size32 entriesPrefetch buffer size8 entries Load queue size128Store address queue size128 Store data queue size128Total issue width8 Simulation Parameters

13 USC Parallel and Distributed Processing Center 13 Simulation Results

14 USC Parallel and Distributed Processing Center 14 Accomplishments n 2x speedup for scientific benchmarks with large data sets over an in-order superscalar processor n 7.4x speedup for matrix multiply (MXM) over an in-order issue superscalar processor - (similar operations are used in ATR/SLD) 2.6x speedup for matrix decomposition/substitution (Cholsky) over an in- order issue superscalar processor n Reduced memory latency for systems that have high memory bandwidths (e.g. PIMs, RAMBUS) n Allows the compiler to solve indexing functions for irregular applications n Reduced system cost for high-throughput scientific codes

15 USC Parallel and Distributed Processing Center 15 Work in Progress n Silicon Space for VLSI Layout n Compiler Progress n Simulator Integration n Hand-compiling of Benchmarks n Architectural Enhancement for Data Intensive Applications

16 USC Parallel and Distributed Processing Center 16 VLSI Layout Overhead n Goal: Evaluate layout effectiveness of HiDISC architecture n Cache has become a major portion of the chip area n Methodology: Extrapolate HiDISC VLSI Layout based on MIPS10000 processor (0.35 μm, 1996) n The space overhead is 11.3% over a comparable MIPS processor

17 USC Parallel and Distributed Processing Center 17 VLSI Layout Overhead ComponentOriginal MIPS R10K(0.35  m) Extrapolation (0.15  m) HiDISC (0.15  m) D-Cache (32KB)26 mm 2 6.5 mm 2 I-Cache (32KB)28 mm 2 7 mm 2 14 mm 2 TLB Part10 mm 2 2.5 mm 2 External Interface Unit27 mm 2 6.8 mm 2 Instruction Fetch Unit and BTB18 mm 2 4.5 mm 2 13.5 mm 2 Instruction Decode Section21 mm 2 5.3 mm 2 Instruction Queue28 mm 2 7 mm 2 0 mm 2 Reorder Buffer17 mm 2 4.3 mm 2 0 mm 2 Integer Functional Unit20 mm 2 5 mm 2 15 mm 2 FP Functional Units24 mm 2 6 mm 2 Clocking & Overhead73 mm 2 18.3 mm 2 Total Size without L2 Cache292 mm 2 73.2 mm 2 87.9 mm 2 Total Size with on chip L2 Cache129.2 mm 2 143.9 mm 2

18 USC Parallel and Distributed Processing Center 18 Compiler Progress n Preprocessor- Support for library calls Gnu pre-processor -Support for special compiler directives (#include, #define) n Nested Loops Nested loops without data dependencies (for and while) Support for conditional statements where the index variable of an inner loop is not a function of some outer loop computation n Conditional statements CP to perform all computations Need to move the condition to AP

19 USC Parallel and Distributed Processing Center 19 # 6 for(i=0;i<10;++i) sw $0, 12($sp) $32: # 7 for(k=0;k<10;++k) sw $0, 4($sp) $33: # 8 ++j; lw $15, 8($sp) addu $24, $15, 1 sw $24, 8($sp) lw $25, 4($sp) addu $8, $25, 1 sw $8, 4($sp) blt $8, 10, $33 lw $9, 12($sp) addu $10, $9, 1 sw $10, 12($sp) blt $10, 10, $32 Nested Loops (Assembly) Assembly Code for (i=0;i<10;++i) for(k=0;k<10;++k) ++j; High Level Code - C

20 USC Parallel and Distributed Processing Center 20 Nested Loops # 6 for(i=0;i<10;++i) $32: b_eod loop_i # 7 for(k=0;k<10;++k) $33: b_eod loop_k # 8 ++j; addu $15, LQ, 1 sw $15, SDQ b $33 Loop_k : b $32 loop_i : # 6 for(i=0;i<10;++i) sw $0, 12($sp) $32: # 7 for(k=0;k<10;++k) sw $0, 4($sp) $33: # 8 ++j; lw LQ, 8($sp) get SCQ sw 8($sp), SAQ lw $25, 4($sp) addu $8, $25, 1 sw $8, 4($sp) blt $8, 10, $33 s_eod lw $9, 12($sp) addu $10, $9, 1 sw $10, 12($sp) blt $10, 10, $32 s_eod # 6 for(i=0;i<10;++i) sw $0, 12($sp) $32: # 7 for(k=0;k<10;++k) sw $0, 4($sp) $33: # 8 ++j; pref 8($sp) put SCQ lw $25, 4($sp) addu $8, $25, 1 sw $8, 4($sp) blt $8, 10, $33 lw $9, 12($sp) addu $10, $9, 1 sw $10, 12($sp) blt $10, 10, $32 CP StreamAP StreamCMP Stream

21 USC Parallel and Distributed Processing Center 21 HiDISC Compiler n Gcc Backend Use input from the parsing phase for performing loop optimizations Extend the compiler to provide MIPS4 Handle loops with dependencies –Nested loops where the computation depends on the indices of more than 1 loop e.g. X(i,j) = i*Y(j,i) where i and j are index variables and j is a function of i

22 USC Parallel and Distributed Processing Center 22 HiDISC Stream Separator Sequential Source Program Flow Graph Classify Address Registers Allocate Instruction to streams Access Stream Access Stream Computation Stream Computation Stream Fix Conditional Statements Move Queue Access into Instructions Move Loop Invariants out of the loop Substitute Prefetches for Loads, Remove global Stores, and Reverse SCQ Direction Substitute Prefetches for Loads, Remove global Stores, and Reverse SCQ Direction Add global data Communication and Synchronization Produce Assembly code Computation Assembly Code Computation Assembly Code Access Assembly Code Access Assembly Code Cache Management Assembly Code Cache Management Assembly Code Previous Work Current Work Add Slip Control Queue Instructions

23 USC Parallel and Distributed Processing Center 23 Simulator Integration n Based on MIPS RISC pipeline Architecture (dsim) n Supports MIPS1 and MIPS2 ISA n Supports dynamic linking for shared library Loading shared library in the simulator n Hand compiling: Using SGI-cc or gcc as front- end Making 3 streams of codes Using SGI-cc as compiler back- end cc –mips2 -s.c dsim.s.cp.s.ap.s.cmp.s cc –mips2 -o.cp.ap.cmp shared library Modification on three.s codes to HiDISC assembly Convert.hs to.s for three codes (hs2s)

24 USC Parallel and Distributed Processing Center 24 DIS Benchmarks n Atlantic Aerospace DIS benchmark suite: Application oriented benchmarks Many defense applications employ large data sets – non contiguous memory access and no temporal locality Too large for hand-compiling, wait until the compiler ready Requires linker that can handle multiple object files n Atlantic Aerospace Stressmarks suite: Smaller and more specific procedures Seven individual data intensive benchmarks Directly illustrate particular elements of the DIS problem

25 USC Parallel and Distributed Processing Center 25 Stressmark Suite StressmarkProblemMemory Access PointerPointer followingSmall blocks at unpredictable locations. Can be parallelized UpdatePointer following with memory update Small blocks at unpredictable location MatrixConjugate gradient simultaneous equation solver Dependent on matrix representation Likely to be irregular or mixed, with mixed levels of reuse NeighborhoodCalculate image texture measures by finding sum and difference histograms Regular access to pairs of words at arbitrary distances FieldCollect statistics on large field of words Regular, with little re-use Corner-TurnMatrix transpositionBlock movement between processing nodes with practically nil computation Transitive ClosureFind all-pairs-shortest-path solution for a directed graph Dependent on matrix representation, but requires reads and writes to different matrices concurrently * DIS Stressmark Suite Version 1.0, Atlantic Aerospace Division

26 USC Parallel and Distributed Processing Center 26 Example of Stressmarks n Pointer Stressmark Basic idea: repeatedly follow pointers to randomized locations in memory Memory access pattern is unpredictable Randomized memory access pattern: –Not sufficient temporal and spatial locality for conventional cache architectures HiDISC architecture provides lower memory access latency

27 USC Parallel and Distributed Processing Center 27 Decoupling of Pointer Stressmarks for (i=j+1;i<w;i++) { if (field[index+i] > partition) balance++; } if (balance+high == w/2) break; else if (balance+high > w/2) { min = partition; } else { max = partition; high++; } while (not EOD) if (field > partition) balance++; if (balance+high == w/2) break; else if (balance+high > w/2) { min = partition; } else { max = partition; high++; } for (i=j+1; i<w; i++) { load (field[index+i]); GET_SCQ; } send (EOD token) for (i=j+1; i<w; i++) { prefetch (field[index+i]); PUT_SCQ; } Inner loop for the next indexing Computation Processor Code Access Processor Code Cache Management Code

28 USC Parallel and Distributed Processing Center 28 Stressmarks n Hand-compile the 7 individual benchmarks Use gcc as front-end Manually partition each of the three instruction streams and insert synchronizing instructions n Evaluate architectural trade-offs Updated simulator characteristics such as out-of- order issue Large L2 cache and enhanced main memory system such as Rambus and DDR

29 USC Parallel and Distributed Processing Center 29 Architectural Enhancement for Data Intensive Applications n Enhanced memory system such as RAMBUS DRAM and DDR DRAM Provide high memory bandwidth Latency does not improve significantly n Decoupled access processor can fully utilize the enhanced memory bandwidth More requests caused by access processor Pre-fetching mechanism hide memory access latency

30 USC Parallel and Distributed Processing Center 30 Flexi-DISC n Fundamental characteristics: inherently highly dynamic at execution time. n Dynamic reconfigurable central computational kernel (CK) n Multiple levels of caching and processing around CK adjustable prefetching n Multiple processors on a chip which will provide for a flexible adaptation from multiple to single processors and horizontal sharing of the existing resources.

31 USC Parallel and Distributed Processing Center 31 Flexi-DISC n Partitioning of Computation Kernel It can be allocated to the different portions of the application or different applications n CK requires separation of the next ring to feed it with data n The variety of target applications makes the memory accesses unpredictable n Identical processing units for outer rings Highly efficient dynamic partitioning of the resources and their run-time allocation can be achieved

32 USC Parallel and Distributed Processing Center 32 Summary n Gcc Backend Use the parsing tree to extract the load instructions Handle loops with dependencies where the index variable of an inner loop is not a function of some outer loop computation n Robust compiler is being designed to experiment and analyze with additional benchmarks Eventually extend it to experiment DIS benchmarks n Additional architectural enhancements have been introduced to make HiDISC amenable to DIS benchmarks

33 USC Parallel and Distributed Processing Center 33 HiDISC: Hierarchical Decoupled Instruction Set Computer New Ideas A dedicated processor for each level of the memory hierarchy Explicitly manage each level of the memory hierarchy using instructions generated by the compiler Hide memory latency by converting data access predictability to data access locality Exploit instruction-level parallelism without extensive scheduling hardware Zero overhead prefetches for maximal computation throughput Impact 2x speedup for scientific benchmarks with large data sets over an in-order superscalar processor 7.4x speedup for matrix multiply over an in-order issue superscalar processor 2.6x speedup for matrix decomposition/substitution over an in- order issue superscalar processor Reduced memory latency for systems that have high memory bandwidths (e.g. PIMs, RAMBUS) Allows the compiler to solve indexing functions for irregular applications Reduced system cost for high-throughput scientific codes Schedule StartApril 2001 Defined benchmarks Completed simulator Performed instruction-level simulations on hand-compiled benchmarks Continue simulations of more benchmarks (SAR) Define HiDISC architecture Benchmark result Update Simulator Dynamic Database Memory Cache Registers Application (FLIR SAR VIDEO ATR /SLD Scientific ) Application (FLIR SAR VIDEO ATR /SLD Scientific ) Processor Decoupling Compiler HiDISC Processor Sensor Inputs Processor Situational Awareness Develop and test a full decoupling compiler decoupling compiler Generate performance statistics and evaluate design


Download ppt "HiDISC: A Decoupled Architecture for Applications in Data Intensive Computing PIs: Alvin M. Despain and Jean-Luc Gaudiot USC UNIVERSITY OF SOUTHERN CALIFORNIA."

Similar presentations


Ads by Google