mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 09:39:34 +08:00
provide default values for CXX, remove duplicate define
This commit is contained in:
parent
e6f0cd7121
commit
d3b314569b
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
# gcc : CXX="g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000"
|
# gcc : CXX="g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000"
|
||||||
# icc : CXX="icpc -fast -no-inline-max-size -fno-exceptions"
|
# icc : CXX="icpc -fast -no-inline-max-size -fno-exceptions"
|
||||||
|
CXX=${CXX-g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000} # default value
|
||||||
|
|
||||||
for ((i=1; i<16; ++i)); do
|
for ((i=1; i<16; ++i)); do
|
||||||
echo "Matrix size: $i x $i :"
|
echo "Matrix size: $i x $i :"
|
||||||
$CXX -O3 -I.. -DNDEBUG benchmark.cpp -DMATSIZE=$i -DEIGEN_UNROLLING_LIMIT=1024 -DEIGEN_UNROLLING_LIMIT=400 -o benchmark && time ./benchmark >/dev/null
|
$CXX -O3 -I.. -DNDEBUG benchmark.cpp -DMATSIZE=$i -DEIGEN_UNROLLING_LIMIT=400 -o benchmark && time ./benchmark >/dev/null
|
||||||
$CXX -O3 -I.. -DNDEBUG -finline-limit=10000 benchmark.cpp -DMATSIZE=$i -DEIGEN_DONT_USE_UNROLLED_LOOPS=1 -o benchmark && time ./benchmark >/dev/null
|
$CXX -O3 -I.. -DNDEBUG -finline-limit=10000 benchmark.cpp -DMATSIZE=$i -DEIGEN_DONT_USE_UNROLLED_LOOPS=1 -o benchmark && time ./benchmark >/dev/null
|
||||||
echo " "
|
echo " "
|
||||||
done
|
done
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
CXX=${CXX-g++} # default value unless caller has defined CXX
|
||||||
echo "Fixed size 3x3, column-major, -DNDEBUG"
|
echo "Fixed size 3x3, column-major, -DNDEBUG"
|
||||||
$CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
$CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
|
||||||
echo "Fixed size 3x3, column-major, with asserts"
|
echo "Fixed size 3x3, column-major, with asserts"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user