Skip main navigation (Press Enter).
Log in
Toggle navigation
Log in
Community
Topic Groups
Champions
Meet the Champions
Program overview
Rising Champions
IBM Champions group
User Groups
Find your User Group
Program overview
Events
Dev Days
Conference
Community events
User Groups events
All TechXchange events
Participate
TechXchange Group
Welcome Corner
Blogging
Member directory
Community leaders
Resources
Badge Program
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
IBM TechXchange
Community
Conference
Events
IBM Developer
IBM Training
Power Programming Languages
×
Power Programming Languages
Connect, learn, share, and engage with IBM Power.
#Power
Group Home
Threads
1K
Blogs
399
Upcoming Events
0
Library
21
Members
956
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.
#C/C++andFortran
#Fortran-Cafe-for-AIX
#openmp
0 comments
0 views
Permalink
Copy
https://community.ibm.com/community/user/blogs/archive-user/2011/12/20/threadprivate-or-threadlocal
Powered by Higher Logic