Hi.
I did some benchmarking with linpack today.
I used the default compiler options I found in the SOA /etc/makepkg.conf
(used by PKGBUILD ) and the ones I usually use on the CT.
Prep:
Code:
--------------------
#systemctl stop squeezelite
#systemctl stop logitechmediaserver
#cc -o linpack linpack.c $CFLAGS
#sync && echo 3 > /proc/sys/vm/drop_caches
# uname -a
Linux soa 3.4.104-sun7i+ #1 SMP PREEMPT Fri Sep 26 17:54:26 CEST 2014 armv7l
GNU/Linux
#
# gcc --version
gcc (GCC) 4.8.2 20131219 (prerelease)
--------------------
###############################################################################
Case 1: linpack with SOA default flags
Code:
--------------------
CFLAGS="-Ofast -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -pipe
-fstack-protector --param=ssp-buffer-size=4"
Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.79 89.44% 2.78% 7.79% 120959.067
128 1.57 89.41% 2.78% 7.81% 121349.349
256 3.15 89.84% 2.78% 7.38% 120595.605
512 6.29 89.76% 2.92% 7.32% 120703.813
1024 12.58 89.81% 2.84% 7.35% 120620.120
--------------------
Case 2: linpack with my flags
Code:
--------------------
CFLAGS="-Ofast -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -ffast-math"
Reps Time(s) DGEFA DGESL OVERHEAD KFLOPS
----------------------------------------------------
64 0.64 88.34% 2.80% 8.85% 150000.654
128 1.30 88.44% 2.79% 8.77% 148211.852
256 2.57 88.35% 2.81% 8.85% 149903.695
512 5.15 88.10% 2.97% 8.93% 149962.969
1024 10.23 88.20% 2.86% 8.94% 151015.824
--------------------
25% difference. I didn't expect this. I think the SOA compiler options
should be be reviewed on a per-platform basis.
I also ran above on on the SOA default 3.4.90 kernels. The differences
with Linpack are neglectable +/-2%.
Cheers
::: ' Touch Toolbox and more' (http://soundcheck-audio.blogspot.com) :::
by soundcheck
------------------------------------------------------------------------
soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=101624
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix