DocumentCode :
2685904
Title :
Hiding relaxed memory consistency with compilers
Author :
Lee, Jaejin ; Padua, David A.
Author_Institution :
Dept. of Comput. Sci. & Eng., Michigan State Univ., East Lansing, MI, USA
fYear :
2000
fDate :
2000
Firstpage :
111
Lastpage :
122
Abstract :
We present a compiler technique, which is based on Shasha and Snir´s delay set analysis, to hide the underlying related memory consistency model for an optimizing compiler for explicitly parallel programs. The compiler presents programmers with a sequentially consistent view of the underlying machine irrespective of whether it follows a sequentially consistent model or a related model. To hide the underlying relaxed memory consistency model and to guarantee sequential consistency, our algorithm inserts fence instructions by identifying memory-barrier nodes. We reduce the number of fence instructions by exploiting the ordering constraints of the underlying memory consistency model and the property of fence and synchronization operations. We introduce dominators with respect to a node in a control flow graph to identify memory-barrier nodes. We also show that minimizing the number of memory-barrier nodes by using dominators with respect to a node is NP-hard
Keywords :
optimising compilers; shared memory systems; NP-hard; compilers; control flow graph; delay set analysis; explicitly parallel programs; fence instructions; memory consistency; memory-barrier nodes; optimizing compiler; related memory consistency model; sequential consistency; Computer science; Delay; Flow graphs; Hardware; Memory architecture; Prefetching; Program processors; Programming profession; Sun; Yarn;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel Architectures and Compilation Techniques, 2000. Proceedings. International Conference on
Conference_Location :
Philadelphia, PA
ISSN :
1089-795X
Print_ISBN :
0-7695-0622-4
Type :
conf
DOI :
10.1109/PACT.2000.888336
Filename :
888336
Link To Document :
بازگشت