wiki:computo:flash
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaAmbos lados, revisión siguiente | ||
wiki:computo:flash [2022/08/10 19:38] srgualpa | wiki:computo:flash [2022/08/12 15:01] (actual) srgualpa | ||
---|---|---|---|
Línea 344: | Línea 344: | ||
<br> | <br> | ||
</ | </ | ||
- | Eso creará una carpeta que se llama como el nombre de la maquina en /sites. Copiar en esa carpeta | + | Eso creará una carpeta que se llama como el nombre de la maquina en /sites. Copiar en esa carpeta |
< | < | ||
<ul class=" | <ul class=" | ||
Línea 360: | Línea 360: | ||
<br> | <br> | ||
- | < | + | < |
<br> | <br> | ||
<br> | <br> | ||
Línea 370: | Línea 370: | ||
< | < | ||
</ul> | </ul> | ||
+ | |||
+ | <button class=" | ||
+ | <div class=" | ||
+ | < | ||
+ | < | ||
+ | <li class=" | ||
+ | <li class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <file c Makefile.h[enable_line_numbers=" | ||
+ | #FLASH makefile definitions for x86-64 Linux (GNU compilers) | ||
+ | # | ||
+ | # Set the HDF5/MPI library paths -- these need to be updated for your system | ||
+ | # | ||
+ | # sites/ | ||
+ | |||
+ | |||
+ | MPI_PATH | ||
+ | HDF4_PATH | ||
+ | HDF5_PATH | ||
+ | HYPRE_PATH = / | ||
+ | ZLIB_PATH | ||
+ | |||
+ | |||
+ | |||
+ | PAPI_PATH | ||
+ | PAPI_FLAGS = | ||
+ | |||
+ | NCMPI_PATH = / | ||
+ | MPE_PATH | ||
+ | |||
+ | # | ||
+ | # Compiler and linker commands | ||
+ | # | ||
+ | # Use the MPICH wrappers around the compilers -- these will automatically | ||
+ | # load the proper libraries and include files. | ||
+ | # to 1.2.2 (?) do not recognize .F90 as a valid Fortran file extension. | ||
+ | # You need to edit mpif90 and add .F90 to the test of filename extensions, | ||
+ | # or upgrade your MPICH. | ||
+ | # | ||
+ | |||
+ | FCOMP = ${MPI_PATH}/ | ||
+ | CCOMP = ${MPI_PATH}/ | ||
+ | CPPCOMP = ${MPI_PATH}/ | ||
+ | LINK = ${MPI_PATH}/ | ||
+ | |||
+ | # pre-processor flag | ||
+ | PP = -D | ||
+ | |||
+ | # | ||
+ | # Compilation flags | ||
+ | # | ||
+ | # Three sets of compilation/ | ||
+ | # code, one for testing, and one for debugging. | ||
+ | # _OPT version. | ||
+ | # these should enable bounds checking. | ||
+ | # flash_test, and is set for quick code generation, and (sometimes) | ||
+ | # profiling. | ||
+ | # (ex. FFLAGS) to the proper set of flags (ex. FFLAGS_OPT). | ||
+ | # | ||
+ | |||
+ | OPENMP = | ||
+ | #-fopenmp | ||
+ | |||
+ | |||
+ | # *************************cambio ******************************** | ||
+ | # PATRON | ||
+ | #FFLAGS_OPT = -c -O2 -fdefault-real-8 -fdefault-double-8 \ | ||
+ | # | ||
+ | |||
+ | # OPTIMIZADO | ||
+ | FFLAGS_OPT = -c -O3 -march=broadwell -fdefault-real-8 -fdefault-double-8 \ | ||
+ | -Wuninitialized | ||
+ | |||
+ | #I explictly add -O0 because I found that compiling source files without | ||
+ | #an optimization flag generates the same object code as compiling source | ||
+ | #files with -O2. The -O0 is required so that gdb no longer shows | ||
+ | #"< | ||
+ | |||
+ | FFLAGS_DEBUG = -ggdb -c -O0 -fdefault-real-8 -fdefault-double-8 \ | ||
+ | -pedantic -Wall -Waliasing \ | ||
+ | -Wsurprising -Wconversion -Wunderflow \ | ||
+ | -ffpe-trap=invalid, | ||
+ | -fimplicit-none -fstack-protector-all | ||
+ | |||
+ | FFLAGS_TEST = -ggdb -c -O0 -fdefault-real-8 -fdefault-double-8 | ||
+ | |||
+ | FFLAGS_HYPRE = -I${HYPRE_PATH}/ | ||
+ | |||
+ | |||
+ | F90FLAGS = -w -fallow-argument-mismatch | ||
+ | |||
+ | |||
+ | #The macro _FORTIFY_SOURCE adds some lightweight checks for buffer | ||
+ | #overflows at both compile time and run time (only active at -O1 or higher) | ||
+ | # | ||
+ | |||
+ | |||
+ | # | ||
+ | # FLAGS PATRON | ||
+ | #CFLAGS_OPT = -ggdb -c -O2 -Wuninitialized -D_FORTIFY_SOURCE=2 | ||
+ | |||
+ | # FLAGS OPTIMIZADO | ||
+ | CFLAGS_OPT = -c -O3 -march=broadwell -Wuninitialized -D_FORTIFY_SOURCE=2 | ||
+ | |||
+ | CFLAGS_DEBUG = -ggdb -c -O0 -Wno-div-by-zero -Wundef \ | ||
+ | -Wconversion -Wstrict-prototypes -Wunreachable-code \ | ||
+ | -pedantic -Wall -Winit-self -ftree-vrp -Wfloat-equal \ | ||
+ | -Wunsafe-loop-optimizations -Wpadded -fstack-protector-all | ||
+ | |||
+ | CFLAGS_TEST = -ggdb -O0 -c | ||
+ | |||
+ | |||
+ | # if we are using HDF5, we need to specify the path to the include files | ||
+ | CFLAGS_HDF5 = -I${HDF5_PATH}/ | ||
+ | CFLAGS_NCMPI = -I${NCMPI_PATH}/ | ||
+ | |||
+ | # | ||
+ | # Linker flags | ||
+ | # | ||
+ | # There is a seperate version of the linker flags for each of the _OPT, | ||
+ | # _DEBUG, and _TEST cases. | ||
+ | # | ||
+ | |||
+ | LFLAGS_OPT | ||
+ | LFLAGS_DEBUG = -ggdb -O0 -o | ||
+ | LFLAGS_TEST | ||
+ | |||
+ | |||
+ | # | ||
+ | # Library specific linking | ||
+ | # | ||
+ | # If a FLASH module has a ' | ||
+ | # create a macro in this Makefile.h for LIB_xxx, which will be added to the | ||
+ | # link line when FLASH is built. | ||
+ | # (incompatible) libraries. | ||
+ | # library macro to add any performance-minded libraries (like fast math), | ||
+ | # depending on how FLASH was setup. | ||
+ | # | ||
+ | |||
+ | LIB_OPT | ||
+ | LIB_DEBUG = | ||
+ | LIB_TEST | ||
+ | |||
+ | LIB_HDF4 | ||
+ | LIB_HDF5 | ||
+ | |||
+ | LIB_PAPI | ||
+ | LIB_MATH | ||
+ | |||
+ | LIB_MPI | ||
+ | LIB_NCMPI = -L ${NCMPI_PATH}/ | ||
+ | LIB_MPE | ||
+ | |||
+ | LIB_HYPRE = -L${HYPRE_PATH}/ | ||
+ | |||
+ | # Uncomment the following line to use electic fence memory debugger. | ||
+ | # export EF_ALLOW_MALLOC_0=1 | ||
+ | #CONFIG_LIB = -L/ | ||
+ | |||
+ | # | ||
+ | # Additional machine-dependent object files | ||
+ | # | ||
+ | # Add any machine specific files here -- they will be compiled and linked | ||
+ | # when FLASH is built. | ||
+ | # | ||
+ | |||
+ | MACHOBJ = | ||
+ | |||
+ | # | ||
+ | # Additional commands | ||
+ | # | ||
+ | |||
+ | MV = mv -f | ||
+ | AR = ar -r | ||
+ | RM = rm -f | ||
+ | CD = cd | ||
+ | RL = ranlib | ||
+ | ECHO = echo | ||
+ | |||
+ | |||
+ | # | ||
+ | # Fake existence of iso_c_bindings module to prevent unnecessary recompilations. | ||
+ | # | ||
+ | ifeq ($(FLASHBINARY), | ||
+ | iso_c_binding.mod : | ||
+ | touch $@ | ||
+ | endif | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <br> | ||
+ | |||
<br> | <br> | ||
- | < | + | < |
<br> | <br> | ||
<br> | <br> | ||
Línea 379: | Línea 577: | ||
</ul> | </ul> | ||
<br> | <br> | ||
- | < | + | < |
<br> | <br> | ||
<br> | <br> | ||
Línea 437: | Línea 635: | ||
<br> | <br> | ||
</ | </ | ||
+ | <JS> | ||
+ | |||
+ | | ||
+ | var acc = document.getElementsByClassName(" | ||
+ | var i; | ||
+ | for (i = 0; i < acc.length; i++) { | ||
+ | acc[i].addEventListener(" | ||
+ | this.classList.toggle(" | ||
+ | var panel = this.nextElementSibling; | ||
+ | if (panel.style.display === " | ||
+ | panel.style.display = " | ||
+ | } else { | ||
+ | panel.style.display = " | ||
+ | } | ||
+ | }); | ||
+ | } | ||
+ | </JS> |
wiki/computo/flash.1660160314.txt.gz · Última modificación: 2022/08/10 19:38 por srgualpa