Skip to content

Commit

Permalink
Merge pull request #100 from pynbody/optimise
Browse files Browse the repository at this point in the history
Make default optimization -O3 instead of -O0 (oops)
  • Loading branch information
apontzen authored Jan 14, 2022
2 parents 35d947c + 2daaf34 commit 65f41ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions genetIC/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reasonably sensible defaults
CFLAGS ?= -Wall -g -lpthread -O0 -fopenmp -std=c++14 -fdiagnostics-color=auto -I`pwd`
CFLAGS ?= -Wall -g -lpthread -O3 -fopenmp -std=c++14 -fdiagnostics-color=auto -I`pwd`

# Here are code options. Probably don't fiddle with these unless you know what you're doing.
#
Expand Down Expand Up @@ -80,8 +80,8 @@ ifeq ($(HOST), clema)
endif

ifeq ($(HOST), jasmi)
CXX = /opt/local/bin/g++-mp-9 -L/opt/local/lib/
CFLAGS = -O2 -g -fopenmp -std=c++14 -I`pwd` -DOPENMP -DDOUBLEPRECISION
CXX = /opt/local/bin/g++-mp-11 -L/opt/local/lib/
CFLAGS = -O3 -g -fopenmp -std=c++14 -I`pwd` -DOPENMP -DDOUBLEPRECISION
endif

ifeq ($(HOST), Rhodo)
Expand Down
2 changes: 1 addition & 1 deletion genetIC/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void setup_parser(tools::ClassDispatch<ICf, void> &dispatch) {
}

void header(ostream &outf, std::string prefix="") {
outf << prefix << "genetIC v1.3.2, compiled: " << __DATE__ << ", " << __TIME__ << endl;
outf << prefix << "genetIC v1.3.3, compiled: " << __DATE__ << ", " << __TIME__ << endl;
time_t now = time(0);
struct tm tstruct;
char buf[80];
Expand Down

0 comments on commit 65f41ee

Please sign in to comment.