Skip to content

v4.1.x: FORTRAN:add elemental attribute to handle compars #10119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2022
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
5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ included in the vX.Y.Z section and be denoted as:
4.1.3 -- March, 2022
--------------------

- Minor datatype performance improvements in the CUDA-based code paths.q
- Added support for ELEMENTAL to the MPI handle comparison functions
in the mpi_f08 module. Thanks to Salvatore Filippone for raising
the issue.
- Minor datatype performance improvements in the CUDA-based code paths.
- Fix MPI_ALLTOALLV when used with MPI_IN_PLACE.
- Fix MPI_BOTTOM handling for non-blocking collectives. Thanks to
Lisandro Dalcin for reporting the problem.
Expand Down
40 changes: 20 additions & 20 deletions ompi/mpi/fortran/use-mpi-f08/mod/mpi-f08-types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -240,104 +240,104 @@ module mpi_f08_types

!... .EQ. operator
!-----------------
logical function ompi_comm_op_eq(a, b)
elemental logical function ompi_comm_op_eq(a, b)
type(MPI_Comm), intent(in) :: a, b
ompi_comm_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_comm_op_eq

logical function ompi_datatype_op_eq(a, b)
elemental logical function ompi_datatype_op_eq(a, b)
type(MPI_Datatype), intent(in) :: a, b
ompi_datatype_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_datatype_op_eq

logical function ompi_errhandler_op_eq(a, b)
elemental logical function ompi_errhandler_op_eq(a, b)
type(MPI_Errhandler), intent(in) :: a, b
ompi_errhandler_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_errhandler_op_eq

logical function ompi_file_op_eq(a, b)
elemental logical function ompi_file_op_eq(a, b)
type(MPI_File), intent(in) :: a, b
ompi_file_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_file_op_eq

logical function ompi_group_op_eq(a, b)
elemental logical function ompi_group_op_eq(a, b)
type(MPI_Group), intent(in) :: a, b
ompi_group_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_group_op_eq

logical function ompi_info_op_eq(a, b)
elemental logical function ompi_info_op_eq(a, b)
type(MPI_Info), intent(in) :: a, b
ompi_info_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_info_op_eq

logical function ompi_message_op_eq(a, b)
elemental logical function ompi_message_op_eq(a, b)
type(MPI_Message), intent(in) :: a, b
ompi_message_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_message_op_eq

logical function ompi_op_op_eq(a, b)
elemental logical function ompi_op_op_eq(a, b)
type(MPI_Op), intent(in) :: a, b
ompi_op_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_op_op_eq

logical function ompi_request_op_eq(a, b)
elemental logical function ompi_request_op_eq(a, b)
type(MPI_Request), intent(in) :: a, b
ompi_request_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_request_op_eq

logical function ompi_win_op_eq(a, b)
elemental logical function ompi_win_op_eq(a, b)
type(MPI_Win), intent(in) :: a, b
ompi_win_op_eq = (a%MPI_VAL .EQ. b%MPI_VAL)
end function ompi_win_op_eq

!... .NE. operator
!-----------------
logical function ompi_comm_op_ne(a, b)
elemental logical function ompi_comm_op_ne(a, b)
type(MPI_Comm), intent(in) :: a, b
ompi_comm_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_comm_op_ne

logical function ompi_datatype_op_ne(a, b)
elemental logical function ompi_datatype_op_ne(a, b)
type(MPI_Datatype), intent(in) :: a, b
ompi_datatype_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_datatype_op_ne

logical function ompi_errhandler_op_ne(a, b)
elemental logical function ompi_errhandler_op_ne(a, b)
type(MPI_Errhandler), intent(in) :: a, b
ompi_errhandler_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_errhandler_op_ne

logical function ompi_file_op_ne(a, b)
elemental logical function ompi_file_op_ne(a, b)
type(MPI_File), intent(in) :: a, b
ompi_file_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_file_op_ne

logical function ompi_group_op_ne(a, b)
elemental logical function ompi_group_op_ne(a, b)
type(MPI_Group), intent(in) :: a, b
ompi_group_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_group_op_ne

logical function ompi_info_op_ne(a, b)
elemental logical function ompi_info_op_ne(a, b)
type(MPI_Info), intent(in) :: a, b
ompi_info_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_info_op_ne

logical function ompi_message_op_ne(a, b)
elemental logical function ompi_message_op_ne(a, b)
type(MPI_Message), intent(in) :: a, b
ompi_message_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_message_op_ne

logical function ompi_op_op_ne(a, b)
elemental logical function ompi_op_op_ne(a, b)
type(MPI_Op), intent(in) :: a, b
ompi_op_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_op_op_ne

logical function ompi_request_op_ne(a, b)
elemental logical function ompi_request_op_ne(a, b)
type(MPI_Request), intent(in) :: a, b
ompi_request_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_request_op_ne

logical function ompi_win_op_ne(a, b)
elemental logical function ompi_win_op_ne(a, b)
type(MPI_Win), intent(in) :: a, b
ompi_win_op_ne = (a%MPI_VAL .NE. b%MPI_VAL)
end function ompi_win_op_ne
Expand Down