wiki:AnnPerformance

Version 16 (modified by hartono, 15 years ago) (diff)

--

Experimental Results on Empirical Performance Optimizations

Platform

All results were obtained from using a quad-core Intel Core 2 Quad Q6600 CPU clocked at 2.4 Ghz with 32 KB L1 D cache, 8MB of L2 cache (4MB shared per core pair), and 2 GB of DDR2-667 RAM, running Linux kernel version 2.6.22 (x86-64). The compiler used was ICC 10.1.

Optimizations used

We used PLuTo (an auto-parallelization and locality optimization tool based on polyhedral models) as a polyhedral-based code transformator. And we also extended ancc with additional modules used to perform syntactical transformations. Below are the (polyhedral and syntactic) optimizations used in this experiment.

Polyhedral transformations (from PLuTo):

  • Loop tiling for L1 and L2 caches
  • Loop fusion
  • Parallelization for multicore machines
  • Loop unrolling/jamming

Syntactic transformations (from ancc module):

  • Non-Rectangular Register tiling
  • Loop permutation/interchange
  • Scalar replacement (to enhance register reuse)

It is to be noted that the register tiling approach used by PLuTo is limited to only rectangular loops. To further improve the resulting performance, we implemented our new register tiling approach as one of the ancc's transformation modules. Our register tiling approach is so general that it can handle both rectangular and non-rectangular loops.

LU Decomposition

Code

for (k=0; k<=N-1; k++) 
  {
    for (j=k+1; j<=N-1; j++)
      A[k][j] = A[k][j]/A[k][k];
    for(i=k+1; i<=N-1; i++)   
      for (j=k+1; j<=N-1; j++)   
	A[i][j] = A[i][j]-A[i][k]*A[k][j];
  }

Sequential (single core)

Parallel (multi-core)

3-D Gauss Seidel

Code

for (t=0; t<=T-1; t++)
  for (i=1; i<=N-2; i++)
    for (j=1; j<=N-2; j++)
      A[i][j] = (A[i-1][j-1] + A[i-1][j] + A[i-1][j+1]
                + A[i][j-1] + A[i][j] + A[i][j+1]
                + A[i+1][j-1] + A[i+1][j] + A[i+1][j+1]) / 9.0;

Sequential (single core)

Parallel (multi-core)

Attachments