Rate This Document
Findability
Accuracy
Completeness
Readability

Running and Verifying the cavity2d Case

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to set the environment variables:
    export PATH=/path/to/GNU/bin: /path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
  3. Run the following command to create a hostfile file and add node information:
    echo -e 'node1\nnode2\n…\nnodex' > /path/to/HOSTFILE
    • In the preceding command, node1, node2, ..., and nodex indicate the host names of the nodes. You can run the hostname command to query the host names. \n indicates a newline character.
    • This step is mandatory when multiple nodes are running and can be skipped when only one node is running.
  4. Run the following command to go to the cavity2d case directory:
    cd /path/to/PALABOS/palabos-v2.1r0/examples/showCases/cavity2d
  5. Run the following command to run the test case:
    time mpirun --allow-run-as-root -mca btl ^openib --hostfile /path/to/HOSTFILE -x OMP_NUM_THREADS=1 -x PATH -x LD_LIBRARY_PATH -N 96 ./cavity2d

    Run the following command on a single node to run the test case:

    time mpirun --allow-run-as-root -mca btl ^openib -np 96 ./cavity2d

    After the case is executed, you can run the ll command to view the generated GIF image file in the tmp directory.