- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is an FYI
I have a C++ application that is threaded with std::threads. It calls an IVF .so library generated with -reentrancy threaded.
This is V16.0.3 on KNL host
Silly me, I assumed that the -reentrancy threaded option on IVF would instruct the compiler to link in the threaded CRTL heap manager... it does not.
My solution was to specify to generate OpenMP parallel code -openmp.
Jim Dempsey
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The options you want are -threads (to specify linking to a library that is thread-safe AND -reentrancy threaded. This is what -openmp gives you implicitly. -reentrancy controls a setting at program startup as to whether the RTL should protect its own data structures against multithread operations. The defaults vary and are changing for 17 (to be thread-safe by default).
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page