1. Download build_Parallel_FMDB_GMI.sh .
2. export CC=; export CXX=; export MPIHOME=;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MPIHOME/lib
To use iGeom/iMesh/iMeshP API, set ENABLE_ITAPS to
1 (default: 0)
To use parmetis and/or zoltan already install export PARMETIS_HOME and/or ZOLTAN_HOME
3. Run the above shell script .
4. Modify /auxilaryBuildScripts/downloadAndBuildParmetis.sh as follow
Modify all 'parmetis-3.1.0' to 'parmetis-4.0.2'
Modify /auxilaryBuildScripts/downloadAndBuildZoltan.sh as follow
Modify all 'v3.1' to 'v3.6'
../configure --with-parmetis-incdir=$PARMETIS_HOME to --with-parmetis-incdir=$PARMETIS_HOME/include and those relevent to parmetis dirs.
5. Modify 'make' command in downloadAndBuildParmetis.sh as
make config
make
6. Modify /FMDB-1.4.0/makefile, line 560 from ' /usr/local/include' to '-I/usr/local/include'
Delete all setting about old-parallel in /FMDB-1.4.0/makefile which use old-style interfaces of metis and parmetis.
7. Comment out /FMDB-1.4.0/ghosting/pmGhostEntities.cc #include<mcheck.h>. It is not supported in cygwin.
Comment out /test/serial/main.cc #include<sys/syscall.h>. It is not supported in cygwin.
8. A bug in zolton ver3.1. Modify line 291 of file parmetis_interface.c from #endif to #else and add #endif in line 347.
9. Modify setting of postdeps in /FMDB-1.4.0/libtool to
postdeps=" \
-L../../lib -lSCORECModel -lSCORECUtil -lipcomman \
-L../../zoltan/Zoltan_v3.6-install/lib -lzoltan \
-L../../parmetis/parmetis-4.0.2 -lparmetis -lmetis \
-lmpichcxx -lpmpich -lmpich -lopa -lmpl -lpthread -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lstdc++ -lgcc_s -lgcc"
10. Compile.
没有评论:
发表评论