| 
									
										
										
										
											2008-03-06 19:36:27 +08:00
										 |  |  | #!/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" | 
					
						
							| 
									
										
										
										
											2010-02-22 22:39:17 +08:00
										 |  |  | CXX=${CXX-g++  -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000} # default value | 
					
						
							| 
									
										
										
										
											2008-03-06 19:36:27 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | for ((i=1; i<16; ++i)); do | 
					
						
							|  |  |  |     echo "Matrix size: $i x $i :" | 
					
						
							| 
									
										
										
										
											2010-02-22 22:39:17 +08:00
										 |  |  |     $CXX -O3 -I.. -DNDEBUG  benchmark.cpp -DMATSIZE=$i -DEIGEN_UNROLLING_LIMIT=400 -o benchmark && time ./benchmark >/dev/null | 
					
						
							| 
									
										
										
										
											2008-03-06 19:36:27 +08:00
										 |  |  |     $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 |