Title :
Fusion of loops for parallelism and locality
Author :
Manjikian, Naraig ; Abdelrahman, Tarek S.
Author_Institution :
Dept. of Electr. & Comput. Eng., Toronto Univ., Ont., Canada
fDate :
2/1/1997 12:00:00 AM
Abstract :
Loop fusion improves data locality and reduces synchronization in data-parallel applications. However, loop fusion is not always legal. Even when legal, fusion may introduce loop-carried dependences which prevent parallelism. In addition, performance losses result from cache conflicts in fused loops. In this paper, we present new techniques to: (1) allow fusion of loop nests in the presence of fusion-preventing dependences, (2) maintain parallelism and allow the parallel execution of fused loops with minimal synchronization, and (3) eliminate cache conflicts in fused loops. We describe algorithms for implementing these techniques in compilers. The techniques are evaluated on a 56-processor KSR2 multiprocessor and on a 18-processor Convex SPP-1000 multiprocessor. The results demonstrate performance improvements for both kernels and complete applications. The results also indicate that careful evaluation of the profitability of fusion is necessary as more processors are used
Keywords :
program compilers; shared memory systems; synchronisation; 56-processor KSR2 multiprocessor; Convex SPP-1000 multiprocessor; cache conflicts; compilers; data locality; fusion of loops; fusion-preventing dependences; locality; parallelism; synchronization; Application software; Computer Society; Kernel; Law; Legal factors; Parallel processing; Performance loss; Production systems; Profitability; Scalability;
Journal_Title :
Parallel and Distributed Systems, IEEE Transactions on