Jump to content

MPI: Scatter: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 March 2026

21 March 2026

  • curprev 11:3011:30, 21 March 2026 SanzSkuy talk contribs 846 bytes +846 Created page with "<syntaxhighlight lang=cpp> #include <mpi.h> #include <iostream> #include <vector> int main(int argc, char** argv) { MPI_Init(NULL, NULL); int world_rank, world_size; MPI_Comm_rank(MPI_COMM_WORLD, &world_rank); MPI_Comm_size(MPI_COMM_WORLD, &world_size); int data_per_process = 2; std::vector<int> send_buffer = {10, 20, 30, 40, 50, 60, 70, 80}; std::vector<int> recv_buffer(data_per_process); MPI_Scatter( send_buffer.data(),..."