Jump to content

MPI: gather: 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

  • curprev 02:0702:07, 29 March 2026 SanzSkuy talk contribs 1,952 bytes +1,952 Created page with "Kebalikan dari scatter <syntaxhighlight lang=cpp> #include <mpi.h> #include <iostream> #include <vector> extern "C" { void array_mul(double* arr_a, double* arr_b, int size); } int main() { 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 total_elements = 8; int data_per_process = total_elements / world_size; std::vector<double> send_buffer_..."