Unsigned Variable Problem with OpenMP.

jimdempseyatthecove
Total Points: 13284
Status Points: 13284
Black Belt
July 28, 2008 3:15 PM PDT
Rate
 
#2

You can certainly place arrays in shared and private clauses.

A multi-precision integer (int 64, int 128, int 256, ...) and depending on processor you can perform an interlocked compare and exchange on up to 16 bytes / 128 bits (see CMPXCHG16B). For anything larger than that you would require mutexes or special wait free programming style.

As long as your library does not use global (static) buffers, and as long as your callers do not assume atomic operations then you should not require special programming considerations.

Jim Dempsey

Forum Statistics

4474 users have contributed to 24001 threads and 69861 posts to date.
In the past 24 hours, we have 42 new thread(s) 152 new posts(s), and 197 new user(s).

In the past 3 days, the most popular thread for everyone has been Catastrophic error The most posts were made to Getting Started in the Partner Program The post with the most views is You can report them here if

Please welcome our newest member Udaysimha Mysore (Intel)