Version 10 (modified by 9 years ago) ( diff ) | ,
---|
How to build VisIt with support for in-situ visualization
Building a parallel version of VisIt on your system allows you to configure VisIt that way, that it uses your MPI library and compiler to avoiding incompatibilities.
If you do not need any special configuration use the prebuild packages provided here (link)!
In the following we demonstrate how to build VisIt on the example of VisIt 2.9.2 (from 10/2015).
Please ensure you always use the latest version and replace "X.Y.Z" or "X_Y_Z" by the appropriate numbers.
QUICK HOWTO
DETAILED HOWTO
1) download VisIt build script
2) build 3rd party libraries
We build the 3rd party libraries in a separate step first (with "--no-visit").
Check all possible options with "./build_visitX_Y_Z --help".
a) with GCC (module load gcc):
b) with Intel Compiler (module load intel):
This will ...
- automatic: downloading 3rd-party packages to current directory ...
- automatic: configure,build packages in subdirectory "<PACKAGE>" ...
- follow output with "tail -f build_visitX_Y_Z_log"
- each of the external packages get compiled and installed into a directory prefix of ./visit/<PACKAGE>/<VERSION>/<ARCH>/
- the corresponding third-library-cmake-settings are created in ./
hostname
.cmake
- the corresponding third-library-cmake-settings are created in ./
3) download VisIt
- download visitx.y.z.tar.gz (eg. http://portal.nersc.gov/svn/visit/trunk/releases/X.Y.Z/visitX.Y.Z.tar.gz)
- extract visitX.Y.Z.tar.gz to previous build directory
4) configure VisIt
- copy third-library-cmake-settings to visitX.Y.Z
- set default compiler to GCC (module switch …)
- change director to visitX.Y.Z/src
- run VisIt's-'ccmake .' and generate Makefiles:
5) compile VisIt
- build will happen in visitX.Y.Z/src only
(=> remove and re-extract directory visitX.Y.Z is a complete clean)
6) install VisIt
- create a tar.gz file
- install VisIt from that tar.gz package
(all symlinks in libraries will be reset to the paths of the machine !!)- eg. visit2.9.2/src/svn_bin/visit-install 2.9.2 linux-x86_64 /home/vrsw/VisIt/2.9.2/gcc44_ompi18
7) test VisIt
- add visit path to $PATH
- add VisIt librarys to your path before you start VisIt - especially a wrong Qt leads to errors difficult to track
(check with 'ldd' on VisIt's gui-binary)
IMPORTANT COMMENTS
- VisIt should be compiled with GCC (only try Intel Compiler Suite if you really need it, in general it does not work right out of the box (more infos).
=> make sure 'mpicc' 'mpic++' etc. use GCC before you start the build process
- IceT: may fail if "mpicc --showme:compile" does not return the path to mpi.h as first entry. Check if this is the case.
If not you might have to set the variables PAR_COMPILER and PAR_INCLUDE before (seems to be fixed in current VisIt version):- export PAR_COMPILER=mpicc
- export PAR_INCLUDE=<'mpicc --showme:compile' with path to mpi.h first>
- more details:
- http://www.visitusers.org/index.php?title=Build_visit_overview
- http://www.visitusers.org/index.php?title=Using_build_visit_with_intel_tools
- http://www.visitusers.org/index.php?title=Building_on_Ubuntu_12.04
- http://www.visitusers.org/index.php?title=ParallelPorting#Compiling_VisIt_to_run_in_parallel
any feedback welcomed - h.zilken@…, goebbert@…
Attachments (1)
-
compile_visit.sh
(4.9 KB
) - added by 9 years ago.
compile script for VisIt
Download all attachments as: .zip