update makefile to use correct arg call after our argparse update
This commit is contained in:
@@ -8,17 +8,17 @@ run: run.c
|
|||||||
$(CC) -O3 -o run run.c -lm
|
$(CC) -O3 -o run run.c -lm
|
||||||
|
|
||||||
# useful for a debug build, can then e.g. analyze with valgrind, example:
|
# useful for a debug build, can then e.g. analyze with valgrind, example:
|
||||||
# $ valgrind --leak-check=full ./run out/model.bin 1.0 3
|
# $ valgrind --leak-check=full ./run out/model.bin -n 3
|
||||||
rundebug: run.c
|
rundebug: run.c
|
||||||
$(CC) -g -o run run.c -lm
|
$(CC) -g -o run run.c -lm
|
||||||
|
|
||||||
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
|
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
|
||||||
# https://simonbyrne.github.io/notes/fastmath/
|
# https://simonbyrne.github.io/notes/fastmath/
|
||||||
# -Ofast enables all -O3 optimizations.
|
# -Ofast enables all -O3 optimizations.
|
||||||
# Disregards strict standards compliance.
|
# Disregards strict standards compliance.
|
||||||
# It also enables optimizations that are not valid for all standard-compliant programs.
|
# It also enables optimizations that are not valid for all standard-compliant programs.
|
||||||
# It turns on -ffast-math, -fallow-store-data-races and the Fortran-specific
|
# It turns on -ffast-math, -fallow-store-data-races and the Fortran-specific
|
||||||
# -fstack-arrays, unless -fmax-stack-var-size is specified, and -fno-protect-parens.
|
# -fstack-arrays, unless -fmax-stack-var-size is specified, and -fno-protect-parens.
|
||||||
# It turns off -fsemantic-interposition.
|
# It turns off -fsemantic-interposition.
|
||||||
# In our specific application this is *probably* okay to use
|
# In our specific application this is *probably* okay to use
|
||||||
.PHONY: runfast
|
.PHONY: runfast
|
||||||
@@ -33,7 +33,7 @@ runomp: run.c
|
|||||||
$(CC) -Ofast -fopenmp -march=native run.c -lm -o run
|
$(CC) -Ofast -fopenmp -march=native run.c -lm -o run
|
||||||
|
|
||||||
.PHONY: win64
|
.PHONY: win64
|
||||||
win64:
|
win64:
|
||||||
x86_64-w64-mingw32-gcc -Ofast -D_WIN32 -o run.exe -I. run.c win.c
|
x86_64-w64-mingw32-gcc -Ofast -D_WIN32 -o run.exe -I. run.c win.c
|
||||||
|
|
||||||
# compiles with gnu99 standard flags for amazon linux, coreos, etc. compatibility
|
# compiles with gnu99 standard flags for amazon linux, coreos, etc. compatibility
|
||||||
|
|||||||
Reference in New Issue
Block a user