2002 · 11 citations · 13 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersComputer ArchitectureAlgorithm AnalysisCache Behavior AnalysisCachingParallel Performance AnalysisShortest Path AlgorithmsAll-pairs Shortest PathsBlock LayoutBlock Layout DesignCache DesignCache OptimizationCompiler DesignFloyd-warshall AlgorithmSpace-time Representation
We show cache friendly implementations of the Floyd-Warshall algorithm for the all-pairs shortest-path problem. We first compare the best commercial compiler optimizations available with standard cache-friendly optimizations and a simple improvement involving a block layout, which reduces TLB misses. We show approximately 15% improvements using these optimizations. We also develop a general representation, the unidirectional space time representation, which can be used to generate cache friendly implementations for a large class of algorithms. We show analytically and experimentally that this representation can be used to minimize level-1 and level-2 cache misses and TLB misses and therefore exhibits the best overall performance. Using this representation we show a 2/spl times/ improvement in performance with respect to the compiler optimized implementation. Experiments were conducted on Pentium III, Alpha, and MIPS R12000 machines using problem sizes between 1024 and 2048 vertices. We used the Simplescalar simulator to demonstrate improved cache performance.
13
V. J. Rayward‐Smith, Thomas H. Cormen, Charles E. Leiserson et al. · Journal of the Operational Research Society · 1991 · 17K citations
The SimpleScalar tool set, version 2.0
Doug Burger, Todd Austin · ACM SIGARCH Computer Architecture News · 1997 · 3.1K citations · Full text
Computer-Aided Design · 1985 · 931 citations
Matteo Frigo, Charles E. Leiserson, Harald Prokop et al. · 2003 · 807 citations