Compile Demolito on a Raspberry Pi?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

bnemias
Posts: 373
Joined: Thu Aug 14, 2008 3:21 am
Location: Albuquerque, NM

Re: Compile Demolito on a Raspberry Pi?

Post by bnemias »

lucasart wrote: Tue Nov 27, 2018 2:22 am
MikeB wrote: Tue Nov 27, 2018 1:19 am

Code: Select all

$(CC) $(CF) -DVERSION=\"$(VERSION)\" ./src/*.c -o $(OUT)  -march=armv8-a+crc -mfpu=neon-vfpv4 -mtune=cortex-a53 -ftree-vectorize -mfloat-abi=hard -O3 $(LF)
All of this seems completely gratuitous:
-mfpu=neon-vfpv4 -mtune=cortex-a53 -ftree-vectorize -mfloat-abi=hard
It's worth playing with optimization level more than some of those. It depends on engine if Os, O2, or O3 produces the fastest build on these devices. For zerowin, a Cortex-a7 running Stockfish, O2 is fastest.

For weaker devices, there are several things worth testing in additon to optimization level:
linktime optimizations on/off
pgo on/off
mthumb on/off

I can't tell you how many devices experienced a reduction with -flto or with PGO. Fruit definitely was faster with -mthumb on some devices. You have to experiment. In the few places it mattered, -mthumb was the bomb. over 50% difference.
bnemias
Posts: 373
Joined: Thu Aug 14, 2008 3:21 am
Location: Albuquerque, NM

Re: Compile Demolito on a Raspberry Pi?

Post by bnemias »

bnemias wrote: Tue Nov 27, 2018 9:41 pm It's worth playing with optimization level more than some of those.
Oh yeah. GCC version still matters in my experience. use 4.9.x if possible. The newer ones suck for chess.