Quiz

  1. You should use MPI_Gatherv if you want send varying numbers of data items FROM a particular location on each process TO individualized locations in a collecting array that is defined on all processes in the communicator.

    True
    False

  2. MPI_Scatterv allows you to send varying numbers of data items from the root process to different locations on each process.

    True
    False

  3. In MPI_Gatherv, the messages taken from the source array may be of any size and arranged in any order as long as they don't overlap with one another.

    True
    False

  4. A call to MPI_Scatterv is intended to distribute every other data item from a given array to all processes, in order, such that each process receives just one data item. What is the correct value of SENDCOUNTS(J) in Fortran (or sendcounts[J-1] in C)? Imagine that SENDCOUNTS(J) (or sendcounts[J-1] in C) is being defined in a loop whose index runs from 1 to N, where N is the total number of processes.

    (a) 1

    (b) 2

    (c) J

    (d) 2*J

    (e) 2*(J-1)

  5. In the above call to MPI_Scatterv, what is the correct value of DISPLS(J) in Fortran (or displs[J-1] in C)? Again, imagine that DISPLS(J) (or displs[J-1] in C) is being defined in a loop whose index runs from 1 to N, where N is the total number of processes.

    (a) 1

    (b) 2

    (c) J

    (d) 2*J

    (e) 2*(J-1)


If you would like an explanation of the correct answers to show up along with your score, select Yes in the box below:
Show Answers:

Name (required for Virtual Workshop Certificate):