Skip to content

Commit bc73bac

Browse files
committed
adjustments for improbe and iprobe
Signed-off-by: Howard Pritchard <[email protected]>
1 parent edbe8e5 commit bc73bac

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ompi/mpi/c/improbe.c.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 2020-2021 The University of Tennessee and The University
88
* of Tennessee Research Foundation. All rights
99
* reserved.
10-
* Copyright (c) 2024 Triad National Security, LLC. All rights
10+
* Copyright (c) 2024-2025 Triad National Security, LLC. All rights
1111
* reserved.
1212
* $COPYRIGHT$
1313
*
@@ -25,8 +25,12 @@
2525
#include "ompi/request/request.h"
2626
#include "ompi/message/message.h"
2727

28+
/*
29+
* use STATUS_INOUT for the case where no message was found and the
30+
* application expects the status to not be changed.
31+
*/
2832
PROTOTYPE ERROR_CLASS improbe(SOURCE source, TAG tag, COMM comm, INT_OUT flag,
29-
MESSAGE_OUT message, STATUS_OUT status)
33+
MESSAGE_OUT message, STATUS_INOUT status)
3034
{
3135
int rc;
3236

ompi/mpi/c/iprobe.c.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
#include "ompi/request/request.h"
3232
#include "ompi/runtime/ompi_spc.h"
3333

34-
PROTOTYPE ERROR_CLASS iprobe(SOURCE source, TAG tag, COMM comm, INT_OUT flag, STATUS_OUT status)
34+
/*
35+
* use STATUS_INOUT for the case where no message was found and the
36+
* application expects the status to not be changed.
37+
*/
38+
PROTOTYPE ERROR_CLASS iprobe(SOURCE source, TAG tag, COMM comm, INT_OUT flag, STATUS_INOUT status)
3539
{
3640
int rc;
3741

0 commit comments

Comments
 (0)