Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102457947
bench_unrolling
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 20, 22:53
Size
651 B
Mime Type
text/x-shellscript
Expires
Sat, Feb 22, 22:53 (2 d)
Engine
blob
Format
Raw Data
Handle
24324016
Attached To
rDLMA Diffusion limited mixed aggregation
bench_unrolling
View Options
#!/bin/bash
# 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"
CXX
=
${
CXX
-g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000
}
# default value
for
((
i
=
1; i<16; ++i
))
;
do
echo
"Matrix size: $i x $i :"
$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
echo
" "
done
Event Timeline
Log In to Comment