Skip to content

Add collectives test coverage for non-contiguous arrays #364

Description

@bonachea

The prif_co_* subroutines taking a dummy argument of type:

type(*), intent(inout), target :: a(..)

are designed to handle inputs with arbitrary rank, shape and contiguity. However our current test coverage fails to exercise that generality.

The tests for prif_co_{min,max} and prif_co_sum include contiguous rank-1 array inputs, and the latter have a few rank-2 arrays. However all the tests for prif_co_broadcast are scalar, and none of the collectives are exercising non-contiguous array inputs.

There is evidence that non-contiguous array inputs will malfunction on LFortran, due to this compiler defect: lfortran/lfortran#2979

CC: @Madhav1729

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions