我要评分
获取效率
正确性
完整性
易理解

Running and Verifying Geant4

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to switch to the directory where the test computing instance is stored:
    cd /path/to/GEANT4/geant4.10.06.p01/examples/extended/parallel/MPI/examples
  3. Copy all the content in the exMPI01 folder to the exMPI01_bak folder:
    cp -r exMPI01 exMPI01_bak
  4. Switch to the test directory.
    cd exMPI01
    mkdir build
    cd build
  5. Run the following commands to perform compilation and installation:
    CC=mpicc CXX=mpicxx CFLAGS='-O3 -finline-functions -march=armv8.2-a -flto' cmake -DCMAKE_INSTALL_PREFIX=/path/to/GEANT4/geant4.10.06.p01/examples/extended/parallel/MPI/examples/exMPI01-test -DGeant4_DIR=/path/to/GEANT4/geant4.10.06.p01-install/lib64/Geant4-10.6.1 -DG4mpi_DIR=/path/to/GEANT4/geant4.10.06.p01-install/lib64/lib64/G4mpi-10.6.1 ../
    make -j16
  6. Run the following command to perform the test:
    mpirun --allow-run-as-root -np 96 -mca btl ^openib ./exMPI01 run.mac > geant4-128core.log 2>&1

    In the geant4-128core.log file, check the value of time (in seconds). A smaller value indicates higher performance.

    Figure 1 shows an example of the test result.
    Figure 1 Result example