- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there,
I'm trying to compile a C++ application that contains "__sync_" atomic gcc built-in functions. The target computer is an AMD64 8*Dual-Core Opteron, running Mandriva2008.
I found in the icpc documentation that __sync_ functions are only available for IA64 architectures.
I also tried to replace the __sync_ calls by the corresponding AO_ calls from the libatomic_ops library, without success.
Are there any atomic functions defined for AMD64 that could be compiled by the intel C++ compiler suite? (I just need a "test_and_set like" function).
Thank you for your answer
I'm trying to compile a C++ application that contains "__sync_" atomic gcc built-in functions. The target computer is an AMD64 8*Dual-Core Opteron, running Mandriva2008.
I found in the icpc documentation that __sync_ functions are only available for IA64 architectures.
I also tried to replace the __sync_ calls by the corresponding AO_ calls from the libatomic_ops library, without success.
Are there any atomic functions defined for AMD64 that could be compiled by the intel C++ compiler suite? (I just need a "test_and_set like" function).
Thank you for your answer
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Evidently, the pthread atomic may be used directly, or implicitly under OpenMP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not aware of any pthread_atomic structures or functions, and the atomic construct in OpenMP must be more expansive than assembly atomic instructions.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page