-
Couldn't load subscription status.
- Fork 1
Threads squash rebase #6
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
base: main
Are you sure you want to change the base?
Changes from 8 commits
a8148b2
e30bd1a
ed196ff
7d3f6b9
db7591d
cd586f5
5b4c92b
95d5cd0
a8b7820
770ae4b
c30c6a5
4a9074e
95c391f
8116bdc
6514506
df9ed9b
e574970
d498325
04ebf88
026bb89
f203d57
de2b838
c55be05
fc5c7c5
9f26479
e5791f9
c7e4269
21b944c
0e2245e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # | ||
| # Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana | ||
| # University Research and Technology | ||
| # Corporation. All rights reserved. | ||
| # Copyright (c) 2004-2005 The University of Tennessee and The University | ||
| # of Tennessee Research Foundation. All rights | ||
| # reserved. | ||
| # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, | ||
| # University of Stuttgart. All rights reserved. | ||
| # Copyright (c) 2004-2005 The Regents of the University of California. | ||
| # All rights reserved. | ||
| # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. | ||
| # Copyright (c) 2019 Sandia National Laboratories. All rights reserved. | ||
| # $COPYRIGHT$ | ||
| # | ||
| # Additional copyrights may follow | ||
| # | ||
| # $HEADER$ | ||
| # | ||
|
|
||
| # main library setup | ||
| noinst_LTLIBRARIES = libmca_threads.la | ||
| libmca_threads_la_SOURCES = | ||
|
|
||
| # local files | ||
| headers = threads.h | ||
| nodist_headers = | ||
| libmca_threads_la_SOURCES += $(headers) | ||
|
|
||
| # Conditionally install the header files | ||
| if WANT_INSTALL_HEADERS | ||
| opaldir = $(opalincludedir)/$(subdir) | ||
| nobase_opal_HEADERS = $(headers) | ||
| nobase_nodist_opal_HEADERS = $(nodist_headers) | ||
| endif | ||
|
|
||
| include base/Makefile.am | ||
|
|
||
| distclean-local: | ||
| rm -f base/static-components.h |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # | ||
| # Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana | ||
| # University Research and Technology | ||
| # Corporation. All rights reserved. | ||
| # Copyright (c) 2004-2005 The University of Tennessee and The University | ||
| # of Tennessee Research Foundation. All rights | ||
| # reserved. | ||
| # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, | ||
| # University of Stuttgart. All rights reserved. | ||
| # Copyright (c) 2004-2005 The Regents of the University of California. | ||
| # All rights reserved. | ||
| # Copyright (c) 2019 Sandia National Laboratories. All rights reserved. | ||
| # | ||
| # $COPYRIGHT$ | ||
| # | ||
| # Additional copyrights may follow | ||
| # | ||
| # $HEADER$ | ||
| # | ||
|
|
||
| headers += \ | ||
| base/base.h \ | ||
| base/threads_base_null.h | ||
|
|
||
| libmca_threads_la_SOURCES += \ | ||
| base/threads_base_open.c |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana | ||
| * University Research and Technology | ||
| * Corporation. All rights reserved. | ||
| * Copyright (c) 2004-2014 The University of Tennessee and The University | ||
| * of Tennessee Research Foundation. All rights | ||
| * reserved. | ||
| * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, | ||
| * University of Stuttgart. All rights reserved. | ||
| * Copyright (c) 2004-2005 The Regents of the University of California. | ||
| * All rights reserved. | ||
| * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. | ||
| * Copyright (c) 2019 Sandia National Laboratories. All rights reserved. | ||
| * | ||
| * $COPYRIGHT$ | ||
| * | ||
| * Additional copyrights may follow | ||
| * | ||
| * $HEADER$ | ||
| * | ||
| */ | ||
|
|
||
| #ifndef OPAL_THREADS_BASE_H | ||
| #define OPAL_THREADS_BASE_H | ||
|
|
||
| #include "opal_config.h" | ||
| #include "opal/mca/base/mca_base_framework.h" | ||
| #include "opal/mca/threads/threads.h" | ||
|
|
||
|
|
||
| /* | ||
| * Global functions for MCA overall threads open and close | ||
| */ | ||
|
|
||
| BEGIN_C_DECLS | ||
|
|
||
| /** | ||
| * Framework structure declaration | ||
| */ | ||
| OPAL_DECLSPEC extern mca_base_framework_t opal_threads_base_framework; | ||
|
|
||
| END_C_DECLS | ||
|
|
||
| /* include implementation to call */ | ||
| #include MCA_threads_IMPLEMENTATION_HEADER | ||
|
|
||
| #endif /* OPAL_BASE_THREADS_H */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # | ||
| # owner/status file | ||
| # owner: institution that is responsible for this package | ||
| # status: e.g. active, maintenance, unmaintained | ||
| # | ||
| owner: SNL | ||
| status: maintenance |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| /* | ||
| * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana | ||
| * University Research and Technology | ||
| * Corporation. All rights reserved. | ||
| * Copyright (c) 2004-2005 The University of Tennessee and The University | ||
| * of Tennessee Research Foundation. All rights | ||
| * reserved. | ||
| * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, | ||
| * University of Stuttgart. All rights reserved. | ||
| * Copyright (c) 2004-2005 The Regents of the University of California. | ||
| * All rights reserved. | ||
| * Copyright (c) 2019 Sandia National Laboratories. All rights reserved. | ||
| * $COPYRIGHT$ | ||
| * | ||
| * Additional copyrights may follow | ||
| * | ||
| * $HEADER$ | ||
| */ | ||
|
|
||
| #ifndef OPAL_MCA_TIMER_BASE_TIMER_BASE_NULL_H | ||
| #define OPAL_MCA_TIMER_BASE_TIMER_BASE_NULL_H | ||
|
|
||
| int opal_condition_t_class; | ||
| int opal_mutex_t_class; | ||
| int opal_recursive_mutex_t_class; | ||
|
|
||
| int opal_thread_join(opal_thread_t *t, void **thr_return) | ||
| { | ||
| return 0; | ||
| } | ||
|
|
||
| void opal_thread_set_main() | ||
| { | ||
| return 0; | ||
| } | ||
| int opal_thread_start(opal_thread_t *t) | ||
| { | ||
| return 0; | ||
| } | ||
|
|
||
| int *opal_thread_t_class = NULL; | ||
|
|
||
| int opal_tsd_key_create(opal_tsd_key_t *key, opal_tsd_destructor_t destructor) | ||
| { | ||
| return 0; | ||
| } | ||
|
|
||
| int opal_uses_threads = 0; | ||
|
||
|
|
||
| int opal_tsd_keys_destruct() | ||
| { | ||
| return 0; | ||
| } | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /* | ||
| * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana | ||
| * University Research and Technology | ||
| * Corporation. All rights reserved. | ||
| * Copyright (c) 2004-2014 The University of Tennessee and The University | ||
| * of Tennessee Research Foundation. All rights | ||
| * reserved. | ||
| * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, | ||
| * University of Stuttgart. All rights reserved. | ||
| * Copyright (c) 2004-2005 The Regents of the University of California. | ||
| * All rights reserved. | ||
| * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. | ||
| * Copyright (c) 2019 Sandia National Laboratories. All rights reserved. | ||
| * | ||
| * $COPYRIGHT$ | ||
| * | ||
| * Additional copyrights may follow | ||
| * | ||
| * $HEADER$ | ||
| */ | ||
|
|
||
|
|
||
| #include "opal_config.h" | ||
|
|
||
| #include "opal/constants.h" | ||
| #include "opal/mca/threads/base/base.h" | ||
|
|
||
|
|
||
| /* | ||
| * The following file was created by configure. It contains extern | ||
| * statements and the definition of an array of pointers to each | ||
| * component's public mca_base_component_t struct. | ||
| */ | ||
| #include "opal/mca/threads/base/static-components.h" | ||
|
|
||
| static int mca_threads_base_register(mca_base_register_flag_t flags) | ||
| { | ||
| // Do I need to register anything here? | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is where you'd define base MCA parameters for the threads component |
||
| return OPAL_SUCCESS; | ||
| } | ||
|
|
||
| /* | ||
| * Globals | ||
| */ | ||
| /* Use default register/open/close functions */ | ||
| MCA_BASE_FRAMEWORK_DECLARE(opal, threads, "OPAL OS threads", mca_threads_base_register, NULL, NULL, | ||
| mca_threads_base_static_components, 0); | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
we need to set these compiler flags now in the threads framework in the various components, we may need to do something special here. We think we need to rework OPAL_CONFIG_THREADS to be more agnostic about type of threads. TODO: @hppritcha will enhance OPAL_CONFIG_THREADS