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:55] 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 | ||
| Line 20: | Line 26: | ||
| *make install | *make install | ||
| | | ||
| - | *Compile HDF5 by following | + | *Compile HDF5 by following |
| First build SZIP by following these steps | First build SZIP by following these steps | ||
| *./ | *./ | ||
| Line 31: | Line 37: | ||
| | | ||
| *Now compile GADGET by following the following steps: | *Now compile GADGET by following the following steps: | ||
| - | *Find the Makefile and the " | + | *Find the Makefile and add the " |
| ifeq ($(SYSTYPE)," | ifeq ($(SYSTYPE)," | ||
| CC | CC | ||
| Line 44: | Line 50: | ||
| endif | endif | ||
| </ | </ | ||
| - | **GADGET is now compiled and you can test it by using one of the examples that come with Gadget download** | + | *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}}** | ||