Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2020-2022 High-Performance Computing Center Stuttgart,
dnl Copyright (c) 2020-2025 High-Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved.

dnl Process this file with autoconf to produce a configure script.
Expand Down Expand Up @@ -52,6 +52,13 @@ AS_IF([test "$enable_mpi2_dynamic" = "yes"],[
AC_DEFINE([HAVE_MPI2_DYNAMIC], [1], [Define to enable MPI2 dynamic process management tests])
])

AC_ARG_ENABLE([mpi4-partitioned-p2p],
AS_HELP_STRING([--enable-mpi4-partitioned-p2p], [Build tests for MPI4 partitioned P2P [[default=yes]]]),,
[enable_mpi4_partitioned_p2p=yes])
AS_IF([test "$enable_mpi4_partitioned_p2p" = "yes"],[
AC_DEFINE([HAVE_MPI4_PARTITIONED_P2P], [1], [Define to enable MPI4 partitioned P2P tests])
])


dnl Checks for header files and compiler characteristics.
AC_C_CONST
Expand Down
5 changes: 5 additions & 0 deletions threaded/tst_threaded_ring_partitioned.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* Date: July 19th 2023
*/

#include <mpi.h>
#include "mpi_test_suite.h"
#include "tst_threads.h"
Expand All @@ -17,6 +18,8 @@

#include <pthread.h>

#ifdef HAVE_MPI4_PARTITIONED_P2P

#define TST_RANK_MASTER 0

static pthread_barrier_t thread_barrier;
Expand Down Expand Up @@ -236,3 +239,5 @@ int tst_threaded_ring_partitioned_cleanup(struct tst_env *env)

return 0;
}

#endif /* HAVE_MPI4_PARTITIONED_P2P */
5 changes: 5 additions & 0 deletions threaded/tst_threaded_ring_partitioned_many_to_one.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*
* Date: July 19th 2023
*/

#include <mpi.h>
#include "mpi_test_suite.h"
#include "tst_threads.h"
Expand All @@ -20,6 +21,8 @@

#define TST_RANK_MASTER 0

#ifdef HAVE_MPI4_PARTITIONED_P2P

static pthread_barrier_t thread_barrier;

static int ratio_send_to_receive = 4;
Expand Down Expand Up @@ -246,3 +249,5 @@ int tst_threaded_ring_partitioned_many_to_one_cleanup(struct tst_env *env)

return 0;
}

#endif /* HAVE_MPI4_PARTITIONED_P2P */
3 changes: 3 additions & 0 deletions tst_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,7 @@ static struct tst_test tst_tests[] = {
&tst_threaded_comm_dup_init, &tst_threaded_comm_dup_run, &tst_threaded_comm_dup_cleanup},


#ifdef HAVE_MPI4_PARTITIONED_P2P
{TST_CLASS_THREADED, "Threaded ring partitioned",
TST_MPI_COMM_SELF | TST_MPI_INTRA_COMM,
1,
Expand All @@ -1392,6 +1393,8 @@ static struct tst_test tst_tests[] = {
TST_MODE_RELAXED,
TST_NONE,
&tst_threaded_ring_partitioned_many_to_one_init, &tst_threaded_ring_partitioned_many_to_one_run, &tst_threaded_ring_partitioned_many_to_one_cleanup},
#endif /* HAVE_MPI4_PARTITIONED_P2P */

#endif

{TST_CLASS_UNSPEC, "None",
Expand Down