Quick Start

Getting Started

  1. Installation
    ./configure --prefix="your installation dir" CC="your mpicc"
    make
    make install
    
  2. Link with MPI Program
    [Example]

    mpicc -o test test.c -lcasper
    

    Or you can set LD_PRELOAD to dynamically load Casper in front of MPI.

    mpicc -o test test.c
    export LD_PRELOAD="Your Casper installation dir"/lib/libcasper.so
    
  3. Execution

    You can set the number of ghost processes per node through the environment variable CSP_NG, it is set to 1 by default.

    [Example 1]
    Running on 2 node, 2 ghost processes and 6 user processes on eacn node.

    export CSP_NG=2
    mpiexec -np 16 -ppn 8 ./test
    

    [Example 2]
    Running on 4 node, 4 ghost processes and 20 user processes on eacn node.

    export CSP_NG=4
    mpiexec -np 96 -ppn 24 ./test