-
Notifications
You must be signed in to change notification settings - Fork 906
opal/mca/threads/qthreads: Fix #8036 #8053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jsquyres
merged 4 commits into
open-mpi:master
from
shintaro-iwasaki:topic/fix_issue_8036
Oct 8, 2020
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6cc17b0
mca/threads/qthreads: rework configury to be smarter
shintaro-iwasaki db3e598
mca/threads/qthreads: remove Argobots dependency
shintaro-iwasaki 919a163
mca/threads/qthreads: implement missing functionalities
shintaro-iwasaki 84dcb23
mca/threads: set THREAD_* flags in the component's root configure.m4
shintaro-iwasaki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,38 @@ | |
# $HEADER$ | ||
# | ||
|
||
noinst_LTLIBRARIES = libmca_threads_qthreads.la | ||
AM_CPPFLAGS = $(opal_qthreads_CPPFLAGS) | ||
|
||
libmca_threads_qthreads_la_SOURCES = \ | ||
sources = \ | ||
threads_qthreads.h \ | ||
threads_qthreads_component.c \ | ||
threads_qthreads_mutex.c \ | ||
threads_qthreads_condition.c \ | ||
threads_qthreads_module.c | ||
threads_qthreads_module.c \ | ||
threads_qthreads_mutex.c \ | ||
threads_qthreads_wait_sync.c \ | ||
threads_qthreads_mutex.h \ | ||
threads_qthreads_threads.h \ | ||
threads_qthreads_tsd.h \ | ||
threads_qthreads_wait_sync.h | ||
|
||
lib_sources = $(sources) | ||
|
||
if MCA_BUILD_opal_threads_qthreads_DSO | ||
component_noinst = | ||
component_install = mca_threads_qthreads.la | ||
else | ||
component_noinst = libmca_threads_qthreads.la | ||
component_install = | ||
endif | ||
|
||
mcacomponentdir = $(opallibdir) | ||
mcacomponent_LTLIBRARIES = $(component_install) | ||
mca_threads_qthreads_la_SOURCES = $(sources) | ||
mca_threads_qthreads_la_LDFLAGS = -module -avoid-version | ||
mca_threads_qthreads_la_LIBADD = $(top_builddir)/opal/lib@[email protected] \ | ||
$(opal_qthreads_LIBS) | ||
|
||
AM_LDFLAGS = -lqthread | ||
noinst_LTLIBRARIES = $(component_noinst) | ||
libmca_threads_qthreads_la_SOURCES = $(sources) | ||
libmca_threads_qthreads_la_LDFLAGS = -module -avoid-version $(opal_qthreads_LDFLAGS) | ||
libmca_threads_qthreads_la_LIBADD = $(opal_qthreads_LIBS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,10 @@ | |
#ifndef OPAL_MCA_THREADS_QTHREADS_THREADS_QTHREADS_H | ||
#define OPAL_MCA_THREADS_QTHREADS_THREADS_QTHREADS_H 1 | ||
|
||
#include <qthread/qthread.h> | ||
#include "@[email protected]" | ||
#include "@OPAL_QTHREADS_INCLUDE_PATH@qthread/tls.h" | ||
|
||
static inline void ensure_init_qthreads(void) | ||
static inline void opal_threads_ensure_init_qthreads(void) | ||
{ | ||
qthread_initialize(); | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this qthread integration relies on the latest master it should probably check for the correct version/symbols being available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It relies on the latest master, but this change cannot be observed at a C level. Specifically, the latest Qthreads changes the way of "#include", which is hard to detect programmatically. Symbol/version check is promising once Qthreads has an official release that includes this update.