manodeep / Corrfunc

⚡️⚡️⚡️Blazing fast correlation functions on the CPU.
https://corrfunc.readthedocs.io
MIT License
163 stars 50 forks source link

Fix compile on Apple M1/M2 #295

Closed manodeep closed 11 months ago

manodeep commented 1 year ago

Compiles on my laptop

Hopefully, it fixes #294

manodeep commented 1 year ago

Need to update Changes.rst

manodeep commented 1 year ago

@lgarrison Will you please review when you get a chance?

lgarrison commented 1 year ago

Yes -- I started to read it today but realized it will take a bit more time to look through! I think I will have time Friday morning.

The first thing that came to mind though was whether the GAS bug detection will still work if -march=native is not set until the bottom of the file. I think it might not, since it needs to assemble with AVX-512 enabled, if supported by the host.

manodeep commented 1 year ago

Ooo - good point. Certainly would need to move that section higher up the file (but after the compiler has been set)

lgarrison commented 1 year ago

Looks like everything is using the fallback kernel on my x86 desktop. I think -march=native isn't making it into the compilation command. Haven't had a chance to debug.

lgarrison commented 1 year ago

@manodeep Are you able to reproduce the problem of everything using the fallback kernel on x86 on this branch?

manodeep commented 1 year ago

Sorry - haven't had a chance yet. I will take a look as soon as I can

manodeep commented 12 months ago

@lgarrison Can confirm the behaviour you saw. Here is what I get while compiling on linux:

mkdir -p lib
make -C theory
CFLAGS is -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3 -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4 -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2 -Wpacked -Wnested-externs -Wpointer-arith -Wredundant-decls -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wno-unused-local-typedefs -march=native

-------COMPILE SETTINGS------------
     MAKE        = ["make"]
     CC      = ["gcc"]
     OPT         = ["-DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP"]
     CFLAGS      = ["-DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3 -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4 -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2 -Wpacked -Wnested-externs -Wpointer-arith -Wredundant-decls -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wno-unused-local-typedefs -march=native"]
     CLINK       = [" -lrt  -fopenmp -lm"]
     PYTHON      = ["python"]
     GSL_CFLAGS  = [""]
     GSL_LINK    = [""]
     PYTHON_CFLAGS   = ["-isystem/apps/skylake/software/Python/3.8.5-gni-2020.0/include/python3.8 -isystem /apps/skylake/software/numpy/1.19.2-gni-2020.0-Python-3.8.5/lib/python3.8/site-packages/numpy-1.19.2-py3.8-linux-x86_64.egg/numpy/core/include/numpy/"]
-------END OF COMPILE SETTINGS------------

make[1]: Entering directory `/home/msinha/temp/Corrfunc/theory'
make -C DD
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DD'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c DD.c -o DD.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../io/ftread.c -o ../../io/ftread.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../io/io.c -o ../../io/io.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/weight_defs.h.src >> ../../utils/weight_defs_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_impl.h.src >> countpairs_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/weight_defs.h.src >> ../../utils/weight_defs_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_impl.h.src >> countpairs_impl_float.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs.c -o countpairs.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_kernels.c.src >> countpairs_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_kernels.c.src >> countpairs_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/gridlink_impl.h.src >> ../../utils/gridlink_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_impl.h.src >> ../../utils/gridlink_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/gridlink_utils.h.src >> ../../utils/gridlink_utils_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_utils.h.src >> ../../utils/gridlink_utils_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/cellarray.h.src >> ../../utils/cellarray_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/cellarray.h.src >> ../../utils/cellarray_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/cell_pair.h.src >> ../../utils/cell_pair_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/cell_pair.h.src >> ../../utils/cell_pair_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/weight_functions.h.src >> ../../utils/weight_functions_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/weight_functions.h.src >> ../../utils/weight_functions_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_impl.c.src >> countpairs_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_impl_double.c -o countpairs_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_impl.c.src >> countpairs_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_impl_float.c -o countpairs_impl_float.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_impl.c.src >> ../../utils/gridlink_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/gridlink_impl_double.c -o ../../utils/gridlink_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" ../../utils/gridlink_impl.c.src >> ../../utils/gridlink_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/gridlink_impl_float.c -o ../../utils/gridlink_impl_float.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_utils.c.src >> ../../utils/gridlink_utils_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/gridlink_utils_double.c -o ../../utils/gridlink_utils_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" ../../utils/gridlink_utils.c.src >> ../../utils/gridlink_utils_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/gridlink_utils_float.c -o ../../utils/gridlink_utils_float.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/utils.c -o ../../utils/utils.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/progressbar.c -o ../../utils/progressbar.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/cpu_features.c -o ../../utils/cpu_features.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c ../../utils/avx512_calls.c -o ../../utils/avx512_calls.o
gcc DD.o ../../io/ftread.o ../../io/io.o countpairs.o countpairs_impl_double.o countpairs_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_double.o ../../utils/gridlink_utils_float.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm  -o DD
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DD'
make -C DDrppi
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DDrppi'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c DDrppi.c -o DDrppi.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_impl.h.src >> countpairs_rp_pi_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_rp_pi_impl.h.src >> countpairs_rp_pi_impl_float.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_rp_pi.c -o countpairs_rp_pi.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_rp_pi_kernels.c.src >> countpairs_rp_pi_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_kernels.c.src >> countpairs_rp_pi_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_impl.c.src >> countpairs_rp_pi_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_rp_pi_impl_double.c -o countpairs_rp_pi_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_rp_pi_impl.c.src >> countpairs_rp_pi_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_rp_pi_impl_float.c -o countpairs_rp_pi_impl_float.o
gcc DDrppi.o ../../io/ftread.o ../../io/io.o countpairs_rp_pi.o countpairs_rp_pi_impl_double.o countpairs_rp_pi_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_double.o ../../utils/gridlink_utils_float.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm  -o DDrppi
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -o wprp wprp.c ../../utils/utils.c  -lrt  -fopenmp -lm
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DDrppi'
make -C DDsmu
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DDsmu'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c DDsmu.c -o DDsmu.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_impl.h.src >> countpairs_s_mu_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_s_mu_impl.h.src >> countpairs_s_mu_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_s_mu_kernels.c.src >> countpairs_s_mu_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_kernels.c.src >> countpairs_s_mu_kernels_double.c
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_s_mu.c -o countpairs_s_mu.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_impl.c.src >> countpairs_s_mu_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_s_mu_impl_double.c -o countpairs_s_mu_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_s_mu_impl.c.src >> countpairs_s_mu_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_s_mu_impl_float.c -o countpairs_s_mu_impl_float.o
gcc DDsmu.o ../../io/ftread.o ../../io/io.o countpairs_s_mu.o countpairs_s_mu_impl_double.o countpairs_s_mu_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm  -o DDsmu
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DDsmu'
make -C wp
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/wp'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c wp.c -o wp.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_wp_impl.h.src >> countpairs_wp_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_wp_impl.h.src >> countpairs_wp_impl_float.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_wp.c -o countpairs_wp.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  wp_kernels.c.src >> wp_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" wp_kernels.c.src >> wp_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_wp_impl.c.src >> countpairs_wp_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_wp_impl_double.c -o countpairs_wp_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_wp_impl.c.src >> countpairs_wp_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_wp_impl_float.c -o countpairs_wp_impl_float.o
gcc wp.o ../../io/io.o ../../io/ftread.o countpairs_wp.o countpairs_wp_impl_double.o countpairs_wp_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm  -o wp
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/wp'
make -C xi
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/xi'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c xi.c -o xi.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_xi_impl.h.src >> countpairs_xi_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_xi_impl.h.src >> countpairs_xi_impl_float.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_xi.c -o countpairs_xi.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" xi_kernels.c.src >> xi_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  xi_kernels.c.src >> xi_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_xi_impl.c.src >> countpairs_xi_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_xi_impl_double.c -o countpairs_xi_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_xi_impl.c.src >> countpairs_xi_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_xi_impl_float.c -o countpairs_xi_impl_float.o
gcc xi.o ../../io/ftread.o ../../io/io.o countpairs_xi.o countpairs_xi_impl_double.o countpairs_xi_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm  -o xi
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/xi'
make -C vpf
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/vpf'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c vpf.c -o vpf.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countspheres_impl.h.src >> countspheres_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countspheres_impl.h.src >> countspheres_impl_double.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres.c -o countspheres.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countspheres_impl.c.src >> countspheres_impl_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  vpf_kernels.c.src >> vpf_kernels_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres_impl_double.c -o countspheres_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countspheres_impl.c.src >> countspheres_impl_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" vpf_kernels.c.src >> vpf_kernels_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres_impl_float.c -o countspheres_impl_float.o
gcc vpf.o ../../io/ftread.o ../../io/io.o countspheres.o countspheres_impl_double.o countspheres_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o vpf
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/vpf'
for dir in DD DDrppi DDsmu wp xi vpf examples python_bindings; do \
    make -C $dir lib; \
done
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DD'
ar rcs libcountpairs.a countpairs.o countpairs_impl_double.o countpairs_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_double.o ../../utils/gridlink_utils_float.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DD'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DDrppi'
ar rcs libcountpairs_rp_pi.a countpairs_rp_pi.o countpairs_rp_pi_impl_double.o countpairs_rp_pi_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_double.o ../../utils/gridlink_utils_float.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DDrppi'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/DDsmu'
ar rcs libcountpairs_s_mu.a countpairs_s_mu.o countpairs_s_mu_impl_double.o countpairs_s_mu_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/DDsmu'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/wp'
ar rcs libcountpairs_wp.a countpairs_wp.o countpairs_wp_impl_double.o countpairs_wp_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/wp'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/xi'
ar rcs libcountpairs_xi.a countpairs_xi.o countpairs_xi_impl_double.o countpairs_xi_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/xi'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/vpf'
ar rcs libcountspheres.a countspheres.o countspheres_impl_double.o countspheres_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/vpf'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/examples'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/examples'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/python_bindings'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/python_bindings'
make -C examples
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/examples'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I../../theory/DD -I../../theory/DDrppi -I../../theory/DDsmu -I../../theory/wp -I../../theory/xi -I../../theory/vpf -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c run_correlations.c -o run_correlations.o
gcc run_correlations.o ../../io/ftread.o ../../io/io.o ../../utils/utils.o ../../utils/progressbar.o ../../theory/DD/libcountpairs.a ../../theory/DDrppi/libcountpairs_rp_pi.a ../../theory/DDsmu/libcountpairs_s_mu.a ../../theory/wp/libcountpairs_wp.a ../../theory/xi/libcountpairs_xi.a ../../theory/vpf/libcountspheres.a  -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o run_correlations
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/examples'
make -C python_bindings
make[2]: Entering directory `/home/msinha/temp/Corrfunc/theory/python_bindings'
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../theory/DD -I../../theory/DDrppi -I../../theory/wp -I../../theory/xi -I../../theory/DDsmu -I../../theory/vpf -isystem/apps/skylake/software/Python/3.8.5-gni-2020.0/include/python3.8 -isystem /apps/skylake/software/numpy/1.19.2-gni-2020.0-Python-3.8.5/lib/python3.8/site-packages/numpy-1.19.2-py3.8-linux-x86_64.egg/numpy/core/include/numpy/ -I../../io -I../../utils _countpairs.c -c -o _countpairs.o
gcc _countpairs.o ../../theory/DD/libcountpairs.a ../../theory/DDrppi/libcountpairs_rp_pi.a ../../theory/wp/libcountpairs_wp.a ../../theory/xi/libcountpairs_xi.a ../../theory/DDsmu/libcountpairs_s_mu.a ../../theory/vpf/libcountspheres.a   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib  -Xlinker -soname -Xlinker "_countpairs.cpython-38-x86_64-linux-gnu.so.2" -shared -o _countpairs.so.2.5.0
rm -f _countpairs.so
ln -s _countpairs.so.2.5.0 _countpairs.so
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/theory/python_bindings'
make[1]: Leaving directory `/home/msinha/temp/Corrfunc/theory'
make -C mocks
CFLAGS is -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3 -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4 -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2 -Wpacked -Wnested-externs -Wpointer-arith -Wredundant-decls -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wno-unused-local-typedefs -march=native

-------COMPILE SETTINGS------------
     MAKE        = ["make"]
     CC      = ["gcc"]
     OPT         = ["-DOUTPUT_RPAVG   -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DLINK_IN_DEC -DLINK_IN_RA  -DDOUBLE_PREC -DUSE_OMP"]
     CFLAGS      = ["-DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3 -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4 -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2 -Wpacked -Wnested-externs -Wpointer-arith -Wredundant-decls -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Wno-unused-local-typedefs -march=native"]
     CLINK       = [" -lrt  -fopenmp -lm"]
     PYTHON      = ["python"]
     GSL_CFLAGS  = [""]
     GSL_LINK    = [""]
     PYTHON_CFLAGS   = ["-isystem/apps/skylake/software/Python/3.8.5-gni-2020.0/include/python3.8 -isystem /apps/skylake/software/numpy/1.19.2-gni-2020.0-Python-3.8.5/lib/python3.8/site-packages/numpy-1.19.2-py3.8-linux-x86_64.egg/numpy/core/include/numpy/"]
-------END OF COMPILE SETTINGS------------

make[1]: Entering directory `/home/msinha/temp/Corrfunc/mocks'
make -C DDrppi_mocks
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDrppi_mocks'
gcc -DOUTPUT_RPAVG   -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DLINK_IN_DEC -DLINK_IN_RA  -DDOUBLE_PREC -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c DDrppi_mocks.c -o DDrppi_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_mocks_impl.h.src >> countpairs_rp_pi_mocks_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_rp_pi_mocks_impl.h.src >> countpairs_rp_pi_mocks_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_rp_pi_mocks_kernels.c.src >> countpairs_rp_pi_mocks_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_mocks_kernels.c.src >> countpairs_rp_pi_mocks_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_mocks_impl.h.src >> ../../utils/gridlink_mocks_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/gridlink_mocks_impl.h.src >> ../../utils/gridlink_mocks_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  ../../utils/cellarray_mocks.h.src >> ../../utils/cellarray_mocks_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/cellarray_mocks.h.src >> ../../utils/cellarray_mocks_double.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_rp_pi_mocks.c -o countpairs_rp_pi_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_rp_pi_mocks_impl.c.src >> countpairs_rp_pi_mocks_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_rp_pi_mocks_impl_double.c -o countpairs_rp_pi_mocks_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_rp_pi_mocks_impl.c.src >> countpairs_rp_pi_mocks_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_rp_pi_mocks_impl_float.c -o countpairs_rp_pi_mocks_impl_float.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" ../../utils/gridlink_mocks_impl.c.src >> ../../utils/gridlink_mocks_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c ../../utils/gridlink_mocks_impl_float.c -o ../../utils/gridlink_mocks_impl_float.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  ../../utils/gridlink_mocks_impl.c.src >> ../../utils/gridlink_mocks_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c ../../utils/gridlink_mocks_impl_double.c -o ../../utils/gridlink_mocks_impl_double.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c ../../utils/set_cosmo_dist.c -o ../../utils/set_cosmo_dist.o
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c ../../utils/cosmology_params.c -o ../../utils/cosmology_params.o
gcc DDrppi_mocks.o ../../io/io.o ../../io/ftread.o countpairs_rp_pi_mocks.o countpairs_rp_pi_mocks_impl_double.o countpairs_rp_pi_mocks_impl_float.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o DDrppi_mocks
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils wprp_mocks.c ../../utils/utils.c  -lrt  -fopenmp -lm -o wprp_mocks
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDrppi_mocks'
make -C DDtheta_mocks
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDtheta_mocks'
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_theta_mocks_impl.h.src >> countpairs_theta_mocks_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_theta_mocks_impl.h.src >> countpairs_theta_mocks_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_theta_mocks_kernels.c.src >> countpairs_theta_mocks_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_theta_mocks_kernels.c.src >> countpairs_theta_mocks_kernels_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_theta_mocks_impl.c.src >> countpairs_theta_mocks_impl_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_theta_mocks_impl.c.src >> countpairs_theta_mocks_impl_float.c
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_theta_mocks.c -o countpairs_theta_mocks.o
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_theta_mocks_impl_float.c -o countpairs_theta_mocks_impl_float.o
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c countpairs_theta_mocks_impl_double.c -o countpairs_theta_mocks_impl_double.o
gcc -DENABLE_MIN_SEP_OPT -DCOPY_PARTICLES -DLINK_IN_DEC -DLINK_IN_RA -DDOUBLE_PREC -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils  -c DDtheta_mocks.c -o DDtheta_mocks.o
gcc countpairs_theta_mocks.o countpairs_theta_mocks_impl_float.o countpairs_theta_mocks_impl_double.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o DDtheta_mocks.o ../../io/io.o ../../io/ftread.o   -lrt  -fopenmp -lm  -o DDtheta_mocks
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils wtheta.c ../../utils/utils.c  -lrt  -fopenmp -lm -o wtheta
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDtheta_mocks'
make -C DDsmu_mocks
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDsmu_mocks'
gcc -DOUTPUT_RPAVG   -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DLINK_IN_DEC -DLINK_IN_RA  -DDOUBLE_PREC -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c DDsmu_mocks.c -o DDsmu_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_mocks_impl.h.src >> countpairs_s_mu_mocks_impl_double.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countpairs_s_mu_mocks_impl.h.src >> countpairs_s_mu_mocks_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_s_mu_mocks_kernels.c.src >> countpairs_s_mu_mocks_kernels_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_mocks_kernels.c.src >> countpairs_s_mu_mocks_kernels_double.c
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_s_mu_mocks.c -o countpairs_s_mu_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countpairs_s_mu_mocks_impl.c.src >> countpairs_s_mu_mocks_impl_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_s_mu_mocks_impl_double.c -o countpairs_s_mu_mocks_impl_double.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countpairs_s_mu_mocks_impl.c.src >> countpairs_s_mu_mocks_impl_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countpairs_s_mu_mocks_impl_float.c -o countpairs_s_mu_mocks_impl_float.o
gcc DDsmu_mocks.o ../../io/io.o ../../io/ftread.o countpairs_s_mu_mocks.o countpairs_s_mu_mocks_impl_double.o countpairs_s_mu_mocks_impl_float.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o DDsmu_mocks
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDsmu_mocks'
make -C vpf_mocks
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/vpf_mocks'
gcc -DPERIODIC -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c vpf_mocks.c -o vpf_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g"  countspheres_mocks_impl.h.src >> countspheres_mocks_impl_float.h
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countspheres_mocks_impl.h.src >> countspheres_mocks_impl_double.h
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres_mocks.c -o countspheres_mocks.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" countspheres_mocks_impl.c.src >> countspheres_mocks_impl_float.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/float/g" vpf_mocks_kernels.c.src >> vpf_mocks_kernels_float.c
gcc -DNDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres_mocks_impl_float.c -o countspheres_mocks_impl_float.o
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  countspheres_mocks_impl.c.src >> countspheres_mocks_impl_double.c
sed -e "/DOUBLE_PREC/!s/DOUBLE/double/g"  vpf_mocks_kernels.c.src >> vpf_mocks_kernels_double.c
gcc -DDOUBLE_PREC  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -c countspheres_mocks_impl_double.c -o countspheres_mocks_impl_double.o
gcc vpf_mocks.o ../../io/io.o ../../io/ftread.o countspheres_mocks.o countspheres_mocks_impl_float.o countspheres_mocks_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o vpf_mocks
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/vpf_mocks'
for dir in DDrppi_mocks DDtheta_mocks DDsmu_mocks vpf_mocks examples python_bindings; do \
    make -C $dir lib; \
done
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDrppi_mocks'
ar rcs libcountpairs_rp_pi_mocks.a countpairs_rp_pi_mocks.o countpairs_rp_pi_mocks_impl_double.o countpairs_rp_pi_mocks_impl_float.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDrppi_mocks'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDtheta_mocks'
ar rcs libcountpairs_theta_mocks.a countpairs_theta_mocks.o countpairs_theta_mocks_impl_float.o countpairs_theta_mocks_impl_double.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDtheta_mocks'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/DDsmu_mocks'
ar rcs libcountpairs_s_mu_mocks.a countpairs_s_mu_mocks.o countpairs_s_mu_mocks_impl_double.o countpairs_s_mu_mocks_impl_float.o ../../utils/gridlink_mocks_impl_float.o ../../utils/gridlink_mocks_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/DDsmu_mocks'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/vpf_mocks'
ar rcs libcountspheres_mocks.a countspheres_mocks.o countspheres_mocks_impl_float.o countspheres_mocks_impl_double.o ../../utils/gridlink_impl_float.o ../../utils/gridlink_impl_double.o ../../utils/gridlink_utils_float.o ../../utils/gridlink_utils_double.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cpu_features.o ../../utils/avx512_calls.o ../../utils/set_cosmo_dist.o ../../utils/cosmology_params.o
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/vpf_mocks'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/examples'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/examples'
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/python_bindings'
make[2]: Nothing to be done for `lib'.
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/python_bindings'
make -C examples
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/examples'
gcc -DOUTPUT_RPAVG   -DENABLE_MIN_SEP_OPT  -DCOPY_PARTICLES  -DLINK_IN_DEC -DLINK_IN_RA  -DDOUBLE_PREC -DUSE_OMP  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../io -I../../utils -I/apps/skylake/software/GSL/2.5-GCC-9.2.0/include -I../../mocks/DDrppi_mocks -I../../mocks/DDsmu_mocks -I../../mocks/DDtheta_mocks -I../../mocks/vpf_mocks -c run_correlations_mocks.c -o run_correlations_mocks.o
gcc run_correlations_mocks.o ../../io/ftread.o ../../io/io.o ../../utils/utils.o ../../utils/progressbar.o ../../utils/cosmology_params.o ../../mocks/DDrppi_mocks/libcountpairs_rp_pi_mocks.a ../../mocks/DDsmu_mocks/libcountpairs_s_mu_mocks.a ../../mocks/DDtheta_mocks/libcountpairs_theta_mocks.a ../../mocks/vpf_mocks/libcountspheres_mocks.a   -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -o run_correlations_mocks
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/examples'
make -C python_bindings
make[2]: Entering directory `/home/msinha/temp/Corrfunc/mocks/python_bindings'
gcc  -DVERSION=\"2.5.0\" -DUSE_UNICODE -std=c99 -m64 -g -Wsign-compare -Wall -Wextra -Wshadow -Wunused -fPIC -D_POSIX_SOURCE=200809L -D_GNU_SOURCE -D_DARWIN_C_SOURCE -O3  -ftree-vectorize -funroll-loops -fprefetch-loop-arrays --param simultaneous-prefetches=4  -fopenmp -funroll-loops -fno-strict-aliasing -Wformat=2  -Wpacked  -Wnested-externs -Wpointer-arith  -Wredundant-decls  -Wfloat-equal -Wcast-qual -Wcast-align -Wmissing-declarations -Wmissing-prototypes  -Wnested-externs -Wstrict-prototypes   -Wno-unused-local-typedefs  -I../../mocks/DDrppi_mocks -I../../mocks/DDtheta_mocks -I../../mocks/vpf_mocks -I../../mocks/DDsmu_mocks -isystem/apps/skylake/software/Python/3.8.5-gni-2020.0/include/python3.8 -isystem /apps/skylake/software/numpy/1.19.2-gni-2020.0-Python-3.8.5/lib/python3.8/site-packages/numpy-1.19.2-py3.8-linux-x86_64.egg/numpy/core/include/numpy/  -I../../io -I../../utils _countpairs_mocks.c -c -o _countpairs_mocks.o
gcc _countpairs_mocks.o ../../mocks/DDrppi_mocks/libcountpairs_rp_pi_mocks.a ../../mocks/DDtheta_mocks/libcountpairs_theta_mocks.a ../../mocks/vpf_mocks/libcountspheres_mocks.a ../../mocks/DDsmu_mocks/libcountpairs_s_mu_mocks.a  -lrt  -fopenmp -lm -L/apps/skylake/software/GSL/2.5-GCC-9.2.0/lib -lgsl -lgslcblas -lm -Xlinker -rpath -Xlinker /apps/skylake/software/GSL/2.5-GCC-9.2.0/lib  -Xlinker -soname -Xlinker "_countpairs_mocks.cpython-38-x86_64-linux-gnu.so.2" -shared -o _countpairs_mocks.so.2.5.0
rm -f _countpairs_mocks.so
ln -s _countpairs_mocks.so.2.5.0 _countpairs_mocks.so
make[2]: Leaving directory `/home/msinha/temp/Corrfunc/mocks/python_bindings'
make[1]: Leaving directory `/home/msinha/temp/Corrfunc/mocks'

So the initial print of CFLAGS within the COMPILE settings block shows that -march=native has been added to CFLAGS but then when the compiler actually compiles the *impl*.c codes, that -march=native is no longer present. And it looks like only the final -march=native is not being honoured, every other flag before -march=native is there on the actual compile line. I am going to try and debug, but happy to hear about ideas to improve the compilation (this specific issue and in general)

manodeep commented 12 months ago

Turns out if I invoke make from the sub-directory (only checked on theory/DD), then the -march=native flag still exists. Seems to me that this is a case of sub-processes and environment/make variables not being seen ... (hand-waving)

If I disable the checking for the compilation options (i.e., these lines), then the -march=native flag stays around

lgarrison commented 11 months ago

I am going to try and debug, but happy to hear about ideas to improve the compilation (this specific issue and in general)

What would you think about switching from Make to Meson? I've used it for a few small projects and had good experiences with it. The builds are fast and the documentation is very good, and I think it would solve a lot of these recursive Makefile issues.

It would also be an opportunity to switch the Python build to a proper PEP 517 backend, since Meson supports building CPython modules (no more string replacement in the Makefile by setup.py!).

manodeep commented 11 months ago

What would you think about switching from Make to Meson? I've used it for a few small projects and had good experiences with it. The builds are fast and the documentation is very good, and I think it would solve a lot of these recursive Makefile issues.

It would also be an opportunity to switch the Python build to a proper PEP 517 backend, since Meson supports building CPython modules (no more string replacement in the Makefile by setup.py!).

Ohh that's a much bigger can of worms! Replacing make with a different build system would be very nice - does meson come in-built or do the users have to install it (and does using meson mean adding python as a required dependency?)

manodeep commented 11 months ago

Regardless, we should have that discussion about overhauling the build system separately. Will you please take a look at the updated code and see if the -march=native stays on linux for you?

lgarrison commented 11 months ago

Does meson come in-built or do the users have to install it (and does using meson mean adding python as a required dependency?)

Users of the C interface would have to install Meson (probably via pip) to be able to compile the code, meaning Python would be a build-time dependency. But Meson has no dependencies outside the Python standard library, so a system installation of Python would work fine.

For Python users, the fact that we could specify meson as a build-backend in pyproject.toml means that it would be automatically installed in the build environment. No more assuming that the user's make aliases to a compatible GNU make!