Skip to content

Instantly share code, notes, and snippets.

@ehamberg
ehamberg / scatterv.c
Last active January 26, 2025 04:41
MPI_Scatterv example
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define SIZE 4
int main(int argc, char *argv[])
{
int rank, size; // for storing this process' rank, and the number of processes