Skip to content

Commit 9175462

Browse files
committed
Add possibility to disable MPI4 partitioned P2P tests
Added new configure option --enable-mpi4-partitioned-p2p to enable/disable the MPI4 partitioned tests. Signed-off-by: Christoph Niethammer <[email protected]>
1 parent 6f572d0 commit 9175462

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

configure.ac

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
2-
dnl Copyright (c) 2020-2022 High-Performance Computing Center Stuttgart,
2+
dnl Copyright (c) 2020-2025 High-Performance Computing Center Stuttgart,
33
dnl University of Stuttgart. All rights reserved.
44

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

55+
AC_ARG_ENABLE([mpi4-partitioned-p2p],
56+
AS_HELP_STRING([--enable-mpi4-partitioned-p2p], [Build tests for MPI4 partitioned P2P [[default=yes]]]),,
57+
[enable_mpi4_partitioned_p2p=yes])
58+
AS_IF([test "$enable_mpi4_partitioned_p2p" = "yes"],[
59+
AC_DEFINE([HAVE_MPI4_PARTITIONED_P2P], [1], [Define to enable MPI4 partitioned P2P tests])
60+
])
61+
5562

5663
dnl Checks for header files and compiler characteristics.
5764
AC_C_CONST

threaded/tst_threaded_ring_partitioned.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* Date: July 19th 2023
1111
*/
12+
1213
#include <mpi.h>
1314
#include "mpi_test_suite.h"
1415
#include "tst_threads.h"
@@ -17,6 +18,8 @@
1718

1819
#include <pthread.h>
1920

21+
#ifdef HAVE_MPI4_PARTITIONED_P2P
22+
2023
#define TST_RANK_MASTER 0
2124

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

237240
return 0;
238241
}
242+
243+
#endif /* HAVE_MPI4_PARTITIONED_P2P */

threaded/tst_threaded_ring_partitioned_many_to_one.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* Date: July 19th 2023
1212
*/
13+
1314
#include <mpi.h>
1415
#include "mpi_test_suite.h"
1516
#include "tst_threads.h"
@@ -20,6 +21,8 @@
2021

2122
#define TST_RANK_MASTER 0
2223

24+
#ifdef HAVE_MPI4_PARTITIONED_P2P
25+
2326
static pthread_barrier_t thread_barrier;
2427

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

247250
return 0;
248251
}
252+
253+
#endif /* HAVE_MPI4_PARTITIONED_P2P */

tst_tests.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,7 @@ static struct tst_test tst_tests[] = {
13771377
&tst_threaded_comm_dup_init, &tst_threaded_comm_dup_run, &tst_threaded_comm_dup_cleanup},
13781378

13791379

1380+
#ifdef HAVE_MPI4_PARTITIONED_P2P
13801381
{TST_CLASS_THREADED, "Threaded ring partitioned",
13811382
TST_MPI_COMM_SELF | TST_MPI_INTRA_COMM,
13821383
1,
@@ -1392,6 +1393,8 @@ static struct tst_test tst_tests[] = {
13921393
TST_MODE_RELAXED,
13931394
TST_NONE,
13941395
&tst_threaded_ring_partitioned_many_to_one_init, &tst_threaded_ring_partitioned_many_to_one_run, &tst_threaded_ring_partitioned_many_to_one_cleanup},
1396+
#endif /* HAVE_MPI4_PARTITIONED_P2P */
1397+
13951398
#endif
13961399

13971400
{TST_CLASS_UNSPEC, "None",

0 commit comments

Comments
 (0)