DocumentCode :
2047580
Title :
Techniques supporting threadprivate in OpenMP
Author :
Martorell, Xavier ; Gonzàlez, Marc ; Duran, Alex ; Balart, Jairo ; Ferrer, Roger ; Ayguadé, Eduard ; Labarta, Jesús
Author_Institution :
Dept. of Comput. Archit., Catalunya Tech. Univ., Barcelona
fYear :
2006
fDate :
25-29 April 2006
Abstract :
This paper presents the alternatives available to support threadprivate data in OpenMP and evaluates them. We show how current compilation systems rely on custom techniques for implementing thread-local data. But in fact the ELF binary specification currently supports data sections that become threadprivate by default. ELF naming for such areas is thread-local storage (TLS). Our experiments demonstrate that implementing threadprivate based on the TLS support is very easy, and more efficient. This proposal goes in the same line as the future implementation of OpenMP on the GNU compiler collection. In addition, our experience with the use of threadprivate in OpenMP applications shows that usually it is better to avoid it. This is because threadprivate variables reside in common blocks and they impede the compiler to fully optimize the code. So it is better to keep threadprivate as a temporary technique only to ease porting MPI codes to OpenMP
Keywords :
distributed shared memory systems; message passing; multi-threading; program compilers; ELF binary specification; GNU compiler; MPI; OpenMP; compilation system; thread-local data; thread-local storage; threadprivate; Computer architecture; Geophysical measurement techniques; Ground penetrating radar; Impedance; Memory architecture; Optimizing compilers; Parallel processing; Parallel programming; Proposals; Yarn;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel and Distributed Processing Symposium, 2006. IPDPS 2006. 20th International
Conference_Location :
Rhodes Island
Print_ISBN :
1-4244-0054-6
Type :
conf
DOI :
10.1109/IPDPS.2006.1639501
Filename :
1639501
Link To Document :
بازگشت