This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
playground:gadgetwalkthrough [2013/01/24 16:08] jabu_v created |
playground:gadgetwalkthrough [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Gadget | + | ==Gadget |
| + | This page describes how to compile your own [[http:// | ||
| + | Before doing anything it is recommended that you create an installation directory (e.g installations) on your / | ||
| + | *Prerequisites | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | szip/ | ||
| + | *[[http:// | ||
| + | *First, add these lines in your startup file .profile:< | ||
| + | . / | ||
| + | module load sunstudio | ||
| + | module load clustertools </ | ||
| + | These lines will help you to load openmpi and other tools that are required to compile and run Gadget. It is also recommended to add them to your job script. | ||
| + | *Compile GSL by following these steps: | ||
| + | *./ | ||
| + | *make | ||
| + | *make install | ||
| + | *Compile FFTW-2.1.5 by following these steps: | ||
| + | *./ | ||
| + | *make | ||
| + | *make install | ||
| + | *make clean | ||
| + | *./ | ||
| + | *make | ||
| + | *make install | ||
| + | | ||
| + | *Compile HDF5 by following these steps: | ||
| + | First build SZIP by following these steps | ||
| + | *./ | ||
| + | *make | ||
| + | *make install | ||
| + | After building SZIP build HDF5 by following these steps | ||
| + | *./ | ||
| + | *make | ||
| + | *make install | ||
| + | | ||
| + | *Now compile GADGET by following the following steps: | ||
| + | *Find the Makefile and add the " | ||
| + | ifeq ($(SYSTYPE)," | ||
| + | CC | ||
| + | OPTIMIZE = -O3 | ||
| + | GSL_INCL = -I/ | ||
| + | GSL_LIBS = -L/ | ||
| + | FFTW_INCL= | ||
| + | FFTW_LIBS= | ||
| + | MPICHLIB = | ||
| + | HDF5INCL = -I/ | ||
| + | HDF5LIB | ||
| + | endif | ||
| + | </ | ||
| + | *make | ||
| + | **GADGET is now compiled and you can test it by using one of the examples that come with Gadget download. You can also download a pdf version of this walkthrough {{mygadgetwalkthrough.pdf | here}}** | ||