Skip main navigation (Press Enter).
Log in
Toggle navigation
Log in
Community
Topic Groups
Champions
Directory
Program overview
Rising Champions
User Groups
Directory
Benefits
Events
Dev Days
Conference
Community events
User Groups events
All TechXchange events
Participate
TechXchange Group
Welcome Corner
Blogging
Member directory
Community leaders
Resources
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
C/C++ and Fortran
×
C/C++ and Fortran
Connect, learn, share, and engage with IBM Power.
Group Home
Threads
302
Blogs
328
Events
0
Library
1
Members
217
View Only
Share
Share on LinkedIn
Share on X
Share on Facebook
Back to Blog List
THREADPRIVATE or THREADLOCAL?
By
Archive User
posted
Tue December 20, 2011 10:31 AM
Like
Originally posted by:
Xing_Xue
To declare a thread specific common block, XL Fortran provides two parallelization directives, THREADPRIVATE and THREADLOCAL. One may be puzzled as to what is the difference between them and which one of them is better.
THREADLOCAL is not defined in the OpenMP standard. It is a directive that XL Fortran supported before the OpenMP standard was published. The reason that XL Fortran is still supporting it is for applications that have dependency on it. On the other hand, THREADPRIVATE is part of the OpenMP standard. It can better interact with other OpenMP constructs and more importantly, applications using THREADPRIVATE are more portable. Therefore, THREADPRIVATE is definitely more preferable.
0 comments
0 views
Permalink
Copy
Powered by Higher Logic