Skip to content

Conversation

hppritcha
Copy link
Member

The Fortran interfaces were using INTEGER for count argument. The MPI-4 standard states that this argument should be INTEGER(KIND=MPI_COUNT_KIND).

related to #11982

@@ -310,9 +310,11 @@ end subroutine ompi_issend_f

subroutine ompi_psend_init_f(buf,partitions,count,datatype,dest,tag,comm,info,request,ierror) &
BIND(C, name="ompi_psend_init_f")
use :: mpi_f08_types, only : MPI_Status, MPI_COUNT_KIND
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add MPI_Status here?

@@ -322,9 +324,11 @@ end subroutine ompi_psend_init_f

subroutine ompi_precv_init_f(buf,partitions,count,datatype,dest,tag,comm,info,request,ierror) &
BIND(C, name="ompi_precv_init_f")
use :: mpi_f08_types, only : MPI_Status, MPI_COUNT_KIND
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add MPI_Status here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@@ -7,16 +7,19 @@
! and Technology (RIST). All rights reserved.
! Copyright (c) 2020 Sandia National Laboratories. All rights reserved.
! Copyright (c) 2021 Bull S.A.S. All rights reserved.
! Copyright (c) 2022 Triad National Security, LLC. All rights
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2023, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@lrbison
Copy link
Contributor

lrbison commented Oct 12, 2023

Looks good to me other than the small items Jeff already pointed out.

The Fortran interfaces were using INTEGER for count
argument.  The MPI-4 standard states that this argument
should be INTEGER(KIND=MPI_COUNT_KIND).

related to open-mpi#11982

Signed-off-by: Howard Pritchard <[email protected]>
@hppritcha hppritcha merged commit f1c84f8 into open-mpi:main Oct 13, 2023
@wenduwan
Copy link
Contributor

@hppritcha Thank you! Do you plan to backport to v5.0.x?

@hppritcha
Copy link
Member Author

Yes later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants