22# This makefile is used to compile Igel for OpenBench and TCEC
33#
44
5- CC = clang
5+ CC = g++
66EXE = igel
77SRC = *.cpp fathom/tbprobe.cpp
88
@@ -11,7 +11,7 @@ GCCDEFINES = $(shell echo | $(CC) -m64 -march=native -E -dM -)
1111EVALFILE = weights/c049c117
1212NNFLAGS = -DEVALFILE=\"$(EVALFILE ) \"
1313
14- LIBS = -std=c++20 -mpopcnt -pthread -lstdc++ -lm
14+ LIBS = -std=c++17 -mpopcnt -pthread -lstdc++ -lm
1515WARN = -Wall
1616OPTIM = -O3 -march=native -flto=auto
1717DEFS = -DNDEBUG -D_BTYPE=0 -DSYZYGY_SUPPORT=TRUE
@@ -30,23 +30,23 @@ endif
3030
3131CFLAGS = $(WARN ) $(LIBS ) $(OPTIM ) $(NNFLAGS )
3232
33+ basic :
34+ $(CC ) $(CFLAGS ) $(SRC ) $(DEFS ) -o $(EXE )
35+
3336pgo : download-network
3437ifeq ($(findstring g++, $(CC ) ) , g++)
3538 $(CC) $(CFLAGS) $(SRC) $(DEFS) -fprofile-generate=pgo -o $(EXE)
36- ./$(EXE) bench 14 > pgo.out 2>&1
39+ ./$(EXE) bench 15 > pgo.out 2>&1
3740 $(CC) $(CFLAGS) $(SRC) $(DEFS) -fprofile-use=pgo -o $(EXE)
3841 @rm -rf pgo pgo.out
3942else ifeq ($(findstring clang, $(CC)), clang)
4043 $(CC) $(CFLAGS) $(SRC) $(DEFS) -fprofile-instr-generate -o $(EXE)
41- ./$(EXE) bench 14 > pgo.out 2>&1
44+ ./$(EXE) bench 15 > pgo.out 2>&1
4245 llvm-profdata merge -output=igel.profdata *.profraw
4346 $(CC) $(CFLAGS) $(SRC) $(DEFS) -fprofile-instr-use=igel.profdata -o $(EXE)
4447 @rm -rf pgo pgo.out igel.profdata *.profraw
4548endif
4649
47- basic :
48- $(CC ) $(CFLAGS ) $(SRC ) $(DEFS ) -o $(EXE )
49-
5050download-network :
5151 mkdir weights; \
5252 echo " Downloading latest Igel network with wget" ; wget -P weights https://github.com/vshcherbyna/igel/releases/download/3.5.0/c049c117;
0 commit comments