ReduceAndSumMatrix Interface

public interface ReduceAndSumMatrix

Contents


Module Procedures

private subroutine ReduceAndSumMatrix_lsr(matrix, comm, gathered_matrix, threshold)

Reduce and sum the matrices in one step. If you use this method, you lose the opportunity for overlapping communication.

Arguments

Type IntentOptional Attributes Name
type(Matrix_lsr), intent(in) :: matrix

The matrix to send.

integer, intent(inout) :: comm

The communicator to send along.

type(Matrix_lsr), intent(inout) :: gathered_matrix

The gathered_matrix the matrix being gathered.

real(kind=NTREAL), intent(in) :: threshold

The threshold the threshold for flushing values.

private subroutine ReduceAndSumMatrix_lsc(matrix, comm, gathered_matrix, threshold)

Reduce and sum the matrices in one step. If you use this method, you lose the opportunity for overlapping communication.

Arguments

Type IntentOptional Attributes Name
type(Matrix_lsc), intent(in) :: matrix

The matrix to send.

integer, intent(inout) :: comm

The communicator to send along.

type(Matrix_lsc), intent(inout) :: gathered_matrix

The threshold the threshold for flushing values.

real(kind=NTREAL), intent(in) :: threshold

The threshold the threshold for flushing values.