Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • 9806548789711bf2b65725640289a2885c1fc967
  • master default protected
  • dev_2022
  • patch-1
  • develop
  • 50-use-ubuntus-libhidapi
  • issue-highLevelDispatch
  • issue-highLevelDesign
  • issue-motorStartBug
  • issue-commandLayerDesign
  • v1.0
  • v0.4-rc.13
  • v0.4-rc.12
  • v0.4-rc.11
  • v0.4-rc.10
  • v0.4-rc.9
  • v0.3-rc.8
  • v0.3-rc.7
  • v0.3-rc.6
  • v0.3-rc.5
  • v0.3-rc.4
  • v0.3-rc.3
  • v0.3-rc.2
  • v0.3-rc.1
  • v0.3-rc
  • v0.2
  • v0.1.1
  • v0.1
28 results

process.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    must-example.c 531 B
    #include <mpi.h>
    #include <stdio.h>
    
    int main (int argc, char** argv)
    {
        int rank, size, buf[8];
    
        MPI_Init(&argc,&argv);
        MPI_Comm_rank (MPI_COMM_WORLD, &rank);
        MPI_Comm_size (MPI_COMM_WORLD, &size);
        MPI_Datatype type;
    
        MPI_Type_contiguous(2, MPI_INTEGER, &type);
    
        MPI_Recv(buf, 2, MPI_INT, size-rank-1, 123, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
    
        MPI_Send(buf, 2, type, size-rank-1, 123, MPI_COMM_WORLD);
    
        printf ("Hello, I am rank %d of %d.\n", rank, size);
    
        MPI_Finalize ();
    
        return 0;
    }