Hi Janus,

Janus Weil wrote:
Looking through the stashed patches, I realized a pending (unsubmitted)
patch, showing that both a test case for CO_REDUCE was missing and that
libcaf_single didn't include co_reduce.

This patch adds them.

Build and regtested on x86-64-gnu-linux.
OK for the trunk?
looks rather trivial to me. All the correctness checking for CO_REDUCE
is already there, right?

Do you mean compile-time diagnostic for invalid arguments? Yes, those are at gfortran.dg/coarray_collectives_9.f90 to gfortran.dg/coarray_collectives_16.f90.

For run time, this patch adds a check, albeit it is not really checkable with num_images() == 1. The multi-image library libcaf_mpi of OpenCoarrays currently only supports co_sum/min/max and co_broadcast and not yet co_reduce.

Tobias

Reply via email to