Skip to content

Commit ef38d92

Browse files
committed
threads: configury updates for argo and qthreads
Accomodate changes from going from OPAL_CHECK_PACKAGET to OAC_CHECK_PACKAGE. related to #10459 Signed-off-by: Howard Pritchard <[email protected]>
1 parent 1829bba commit ef38d92

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

opal/mca/threads/argobots/configure.m4

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Copyright (c) 2015 Research Organization for Information Science
1515
# and Technology (RIST). All rights reserved.
1616
# Copyright (c) 2019 Sandia National Laboratories. All rights reserved.
17-
# Copyright (c) 2019 Triad National Security, LLC. All rights
17+
# Copyright (c) 2019-2022 Triad National Security, LLC. All rights
1818
# Reserved.
1919
# Copyright (c) 2021 Argonne National Laboratory. All rights reserved.
2020
# $COPYRIGHT$
@@ -56,14 +56,9 @@ AC_DEFUN([OPAL_CONFIG_ARGOBOTS_THREADS],[
5656

5757
AS_IF([test $opal_argo_happy = yes && test $opal_argo11_happy = no],
5858
[AC_MSG_ERROR([Open MPI requires Argobots 1.1 or newer.])])
59-
AS_IF([test $opal_argo_happy = yes && test $opal_argo11_happy = yes && test -n "$opal_argo_dir"],
60-
[OPAL_ARGO_INCLUDE_PATH="$opal_argo_dir/include/"],
61-
[OPAL_ARGO_INCLUDE_PATH=""])
6259

6360
AS_IF([test $opal_argo_happy = yes],
64-
[AC_CONFIG_FILES([opal/mca/threads/argobots/threads_argobots.h])
65-
AC_SUBST([OPAL_ARGO_INCLUDE_PATH])
66-
AC_SUBST([opal_argo_CPPFLAGS])
61+
[ AC_SUBST([opal_argo_CPPFLAGS])
6762
AC_SUBST([opal_argo_LDFLAGS])
6863
AC_SUBST([opal_argo_LIBS])
6964
TPKG_CFLAGS="$opal_argo_CPPFLAGS"
@@ -74,7 +69,7 @@ AC_DEFUN([OPAL_CONFIG_ARGOBOTS_THREADS],[
7469
TPKG_LDFLAGS="$opal_argo_LDFLAGS"
7570
TPKG_LIBS="$opal_argo_LIBS"])
7671

77-
CPPFLAGS=$opal_check_argo_save_CPPFLAGS
72+
CPPFLAGS="${opal_check_argo_save_CPPFLAGS} ${opal_argo_CPPFLAGS}"
7873
LDFLAGS=$opal_check_argo_save_LDFLAGS
7974
LIBS=$opal_check_argo_save_LIBS
8075

opal/mca/threads/argobots/threads_argobots.h.in renamed to opal/mca/threads/argobots/threads_argobots.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef OPAL_MCA_THREADS_ARGOBOTS_THREADS_ARGOBOTS_H
2727
#define OPAL_MCA_THREADS_ARGOBOTS_THREADS_ARGOBOTS_H
2828

29-
#include "@OPAL_ARGO_INCLUDE_PATH@abt.h"
29+
#include "abt.h"
3030

3131
static inline void opal_threads_argobots_ensure_init(void)
3232
{

opal/mca/threads/qthreads/configure.m4

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2015 Research Organization for Information Science
1515
# and Technology (RIST). All rights reserved.
16-
# Copyright (c) 2019 Triad National Security, LLC. All rights
16+
# Copyright (c) 2019-2022 Triad National Security, LLC. All rights
1717
# reserved.
1818
#
1919
# $COPYRIGHT$
@@ -45,10 +45,6 @@ AC_DEFUN([OPAL_CONFIG_QTHREADS],[
4545
[opal_qthreads_happy=yes],
4646
[opal_qthreads_happy=no])
4747

48-
AS_IF([test $opal_qthreads_happy = yes && test -n "$opal_qthreads_dir"],
49-
[OPAL_QTHREADS_INCLUDE_PATH="$opal_qthreads_dir/include/"],
50-
[OPAL_QTHREADS_INCLUDE_PATH=""])
51-
5248
AS_IF([test $opal_qthreads_happy = yes],
5349
[TPKG_CFLAGS="$opal_qthreads_CPPFLAGS"
5450
TPKG_FCFLAGS="$opal_qthreads_CPPFLAGS"
@@ -58,13 +54,11 @@ AC_DEFUN([OPAL_CONFIG_QTHREADS],[
5854
TPKG_LDFLAGS="$opal_qthreads_LDFLAGS"
5955
TPKG_LIBS="$opal_qthreads_LIBS"])
6056

61-
AC_CONFIG_FILES([opal/mca/threads/qthreads/threads_qthreads.h])
62-
AC_SUBST([OPAL_QTHREADS_INCLUDE_PATH])
6357
AC_SUBST([opal_qthreads_CPPFLAGS])
6458
AC_SUBST([opal_qthreads_LDFLAGS])
6559
AC_SUBST([opal_qthreads_LIBS])
6660

67-
CPPFLAGS=$opal_check_qthreads_save_CPPFLAGS
61+
CPPFLAGS="${opal_check_argo_save_CPPFLAGS} ${opal_qthreads_CPPFLAGS}"
6862
LDFLAGS=$opal_check_qthreads_save_LDFLAGS
6963
LIBS=$opal_check_qthreads_save_LIBS
7064

opal/mca/threads/qthreads/threads_qthreads.h.in renamed to opal/mca/threads/qthreads/threads_qthreads.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
#ifndef OPAL_MCA_THREADS_QTHREADS_THREADS_QTHREADS_H
2727
#define OPAL_MCA_THREADS_QTHREADS_THREADS_QTHREADS_H 1
2828

29-
#include "@OPAL_QTHREADS_INCLUDE_PATH@qthread.h"
30-
#include "@OPAL_QTHREADS_INCLUDE_PATH@qthread/tls.h"
29+
#include "qthread.h"
30+
#include "qthread/tls.h"
3131

3232
static inline void opal_threads_ensure_init_qthreads(void)
3333
{

0 commit comments

Comments
 (0)