Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions orte/orted/orted_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@ int orte_daemon(int argc, char *argv[])
*/
opal_finalize_util();

/* orted uses multiple threads, thus need to enable opal's multi-thread support,
* otherwise, OPAL_RELEASE will not use atomic operations to update object's
* reference counter, which will lead to double free issue.
*/
opal_set_using_threads(true);

/* bind ourselves if so directed */
if (NULL != orte_daemon_cores) {
char **cores=NULL, tmp[128];
Expand Down