This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
playground:gadgetwalkthrough [2013/01/25 14:24] jabu_v |
playground:gadgetwalkthrough [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==Gadget Compilation Walkthrough== | ==Gadget Compilation Walkthrough== | ||
| - | This page describes how to compile your own Gadget and libraries at CHPC. | + | 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 / | 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:< | *First, add these lines in your startup file .profile:< | ||
| . / | . / | ||
| module load sunstudio | module load sunstudio | ||
| module load clustertools </ | module load clustertools </ | ||
| - | These lines will help you to load openmpi and other tools that are required to compile and run Gadget. | + | 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 | + | *Compile GSL by following |
| *./ | *./ | ||
| *make | *make | ||
| *make install | *make install | ||
| *Compile FFTW-2.1.5 by following these steps: | *Compile FFTW-2.1.5 by following these steps: | ||
| - | *./ | + | *./ |
| *make | *make | ||
| + | *make install | ||
| + | *make clean | ||
| + | *./ | ||
| + | *make | ||
| *make install | *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}}** | ||