An optimal index reshuffle algorithm for multidimensional arrays and its applications for parallel architectures

Authors
Citation
Chq. Ding, An optimal index reshuffle algorithm for multidimensional arrays and its applications for parallel architectures, IEEE PARALL, 12(3), 2001, pp. 306-315
Citations number
12
Categorie Soggetti
Computer Science & Engineering
Journal title
IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS
ISSN journal
10459219 → ACNP
Volume
12
Issue
3
Year of publication
2001
Pages
306 - 315
Database
ISI
SICI code
1045-9219(200103)12:3<306:AOIRAF>2.0.ZU;2-X
Abstract
Reshuffling elements of a multidimensional array according to an index oper ation traditionally requires an auxiliary buffer of the same size as the or iginal array. Here, we describe a new in-place algorithm using vacancy trac king cycles with minimum memory access which eliminates the buffer array an d the related copy-back, speeding up the reshuffle significantly for large arrays. The algorithm can be paralleiized using a multithread approach on s hared-memory multiprocessor computers. On distributed-memory multiprocessor computers, the index reshuffle of distributed multidimensional arrays amou nts to a remapping of processor domains and is carried out using the in-pla ce local algorithm combined with a global exchange algorithm. Implementatio n and test results on GRAY T3E and IBM SP indicate the effectiveness of the algorithm.