Geant4.10 MPIメモ | emacsのブログ

emacsのブログ

いろいろ。

Geant4.10.01でMPI使おうとしてサンプルcmakeしたら
Could not find a package configuration file provided by "G4mpi" with any of
the following names:

G4mpiConfig.cmake
g4mpi-config.cmake

Add the installation prefix of "G4mpi" to CMAKE_PREFIX_PATH or set
とか言われたのでcmakeの時に
-DCMAKE_PREFIX_PATH=~~
と追加
-DCMAKE_CXX_COMPILER=mpicxx もなんとなく追加で書いといた

これでサンプルはコンパイルできた。

サンプルにちゃんと書いてあった
cmake -DG4mpi_DIR=/lib[64]/G4mpi -DCMAKE_CXX_COMPILER=mpicxx \
-DGeant4_DIR=/lib[64]/Geant4-V.m.n