admin:compilaciones:gadget
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| admin:compilaciones:gadget [2025/07/16 19:40] – created flezcano | admin:compilaciones:gadget [2025/07/16 20:02] (current) – flezcano | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Compilar Gadget4 ====== | ====== Compilar Gadget4 ====== | ||
| + | |||
| + | < | ||
| + | git clone http:// | ||
| + | module purge && ml intel/ | ||
| + | cd gadget4 | ||
| + | cp Template-Config.sh Config.sh | ||
| + | cp Template-Makefile.systype Makefile.systype | ||
| + | </ | ||
| + | |||
| + | En Makefile.systype descomentar SYSTYPE=" | ||
| + | Luego editar buildsystem/ | ||
| + | |||
| + | < | ||
| + | GSL_INCL | ||
| + | GSL_LIBS | ||
| + | FFTW_INCL | ||
| + | FFTW_LIBS | ||
| + | HDF5_INCL | ||
| + | HDF5_LIBS | ||
| + | HWLOC_INCL = -I/ | ||
| + | HWLOC_LIBS = -L/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | Editar buildsystem/ | ||
| + | |||
| + | < | ||
| + | CPP = mpicxx -std=c++11 | ||
| + | |||
| + | # Optimización con Intel (las flags originales son compatibles) | ||
| + | OPTIMIZE = -ggdb -O3 -march=native -Wall -Wno-format-security | ||
| + | |||
| + | # Vectorización explícita (con AVX) | ||
| + | ifeq (EXPLICIT_VECTORIZATION, | ||
| + | CFLAGS_VECTOR += -mavx -fabi-version=0 | ||
| + | CPV = $(CPP) | ||
| + | else | ||
| + | CFLAGS_VECTOR = | ||
| + | CPV = $(CPP) | ||
| + | endif | ||
| + | </ | ||
| + | |||
| + | Compilar: | ||
| + | |||
| + | < | ||
| + | |||
| + | Si falla porque necesita el comando python y no esta instalado python-is-python3: | ||
| + | < | ||
| + | cd $HOME/bin | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | Luego volver a correr el make. | ||
| + | |||
| + | === IMPORTANTE === | ||
| + | Para compilar hay que setear opciones en un archivo Config.sh. Estas opciones tienen que ver con parámetros de la aplicación. Hay que averiguar que opciones hay que establecer según el uso del proyecto. | ||
| + | |||
admin/compilaciones/gadget.1752694835.txt.gz · Last modified: by flezcano
