Logo image
Efficient address generation for affine subscripts in data-parallel programs
Conference paper

Efficient address generation for affine subscripts in data-parallel programs

Kuei-Ping Shih, Jang-Ping Sheu and Chih-Yung Chang
Proceedings of the Internatoinal Conference on Parallel and Distributed Systems - ICPADS, pp.758-765
1998

Abstract

This paper presents an efficient compilation technique to generate the local memory access sequences for block-cyclically distributed array references with affine subscripts in data-parallel programs. For the memory accesses of an array reference with affine subscript within a two-nested loop, there exist repetitive patterns both at the outer and inner loops. We use tables to record the memory accesses of repetitive patterns. According to these tables, a new start-computation algorithm is proposed to compute the starting elements on a processor for each outer loop iteration. The complexities of the table constructions are O(k+s 2 ), where k is the distribution block size and s 2 is the access stride for the inner loop. After tables are constructed, generating each starting element for each outer loop iteration can run in O(1) time. Moreover, we also show that the repetitive iterations for outer loop are Pk/gcd(Pk, s 1 ), where P is the number of processors and s 1 is the access stride for the outer loop. Therefore, the total complexity to generate the local memory access sequences for a block-cyclically distributed array with affine subscript in a two-nested loop is O(Pk/gcd(Pk, s 1 )+k+s 2 ).

Metrics

1 Record Views

Details

Logo image