Running and Verifying Geant4
Procedure
- Use PuTTY to log in to the server as the root user.
- 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
- Copy all the content in the exMPI01 folder to the exMPI01_bak folder:
cp -r exMPI01 exMPI01_bak
- Switch to the test directory.
cd exMPI01 mkdir build cd build
- 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
- 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.
Parent topic: Geant4 10.6 Porting Guide (CentOS 7.6)
