Created
February 22, 2018 15:01
-
-
Save lue/a1ee476f633f06d38062f7fe386db466 to your computer and use it in GitHub Desktop.
fastpm makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Pick the MPI C compiler | |
CC = mpicc | |
# | |
# | |
# cc flag to enable OPENMP | |
# | |
OPENMP = -fopenmp | |
# | |
# Disable openmp | |
# OPENMP = | |
# | |
# remember to remove depends/install to ensure a rebuild of the dependencies | |
# flipping between openmp and not. | |
# | |
# For double precision FFT, use | |
# | |
# CPPFLAGS = -DFASTPM_FFT_PRECISION=64 | |
# | |
# Usually, use | |
# | |
CPPFLAGS = -DFASTPM_FFT_PRECISION=32 | |
# | |
# Set special LDFLAGS, | |
# e.g if mpicc cannot find MPI libraries | |
# | |
# LDFLAGS = | |
# | |
# | |
# Use -O3 for faster code | |
# | |
OPTIMIZE = -O3 -g -std=c99 | |
GSL_LIBS = -lgsl -lgslcblas | |
# flags to configure pfft. --enable-avx512 for knl! | |
PFFT_CONFIGURE_FLAGS = --enable-sse2 --enable-avx | |
# | |
# | |
# On some systems, DEPCMD has to be modified to include MPI headers | |
# | |
# DEPCMD = gcc -MG -MP -MT .objs/$(<:%.c=%.o) -MM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment