mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* updated benchmark files according to recent renamings
* various improvements in BTL including trisolver and cholesky bench
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
ADD_CUSTOM_TARGET(copy_scripts)
|
||||
|
||||
SET(script_files go_mean aat.hh ata.hh axpy.hh order_lib mk_mean_script.sh mk_new_gnuplot.sh mk_gnuplot_script.sh matrix_matrix.hh matrix_vector.hh atv.hh perlib_plot_settings.txt gnuplot_common_settings.hh )
|
||||
SET(script_files go_mean aat.hh ata.hh axpy.hh axpby.hh cholesky.hh trisolve.hh order_lib mk_mean_script.sh mk_new_gnuplot.sh mk_gnuplot_script.sh matrix_matrix.hh matrix_vector.hh atv.hh perlib_plot_settings.txt gnuplot_common_settings.hh )
|
||||
|
||||
FOREACH(script_file ${script_files})
|
||||
ADD_CUSTOM_COMMAND(
|
||||
|
||||
3
bench/btl/data/axpby.hh
Normal file
3
bench/btl/data/axpby.hh
Normal file
@@ -0,0 +1,3 @@
|
||||
set title "{/*1.5 Y = alpha * X + beta * Y}" 0.000000,0.000000
|
||||
set xlabel "vector size" 0.000000,0.000000
|
||||
set xrange [1:1000000]
|
||||
3
bench/btl/data/cholesky.hh
Normal file
3
bench/btl/data/cholesky.hh
Normal file
@@ -0,0 +1,3 @@
|
||||
set title "{/*1.5 Cholesky decomposition}" 0.000000,0.000000
|
||||
set xlabel "matrix size" 0.000000,0.000000
|
||||
set xrange [6:1000]
|
||||
@@ -17,11 +17,13 @@ echo '<ul>'\
|
||||
'</p>' >> $webpagefilename
|
||||
|
||||
source mk_mean_script.sh axpy $1 11 2500 100000 250000 > $1/axpy.html
|
||||
source mk_mean_script.sh matrix_vector $1 11 50 300 500 > $1/matrix_vector.html
|
||||
source mk_mean_script.sh atv $1 11 50 300 500 > $1/atv.html
|
||||
# source mk_mean_script.sh matrix_matrix $1 11 100 300 500 > $1/matrix_matrix.html
|
||||
# source mk_mean_script.sh aat $1 11 100 300 1000 > $1/aat.html
|
||||
# source mk_mean_script.sh ata $1 11 100 300 1000 > $1/ata.html
|
||||
source mk_mean_script.sh matrix_vector $1 11 50 300 1000 > $1/matrix_vector.html
|
||||
source mk_mean_script.sh atv $1 11 50 300 1000 > $1/atv.html
|
||||
source mk_mean_script.sh matrix_matrix $1 11 100 300 1000 > $1/matrix_matrix.html
|
||||
source mk_mean_script.sh aat $1 11 100 300 1000 > $1/aat.html
|
||||
source mk_mean_script.sh ata $1 11 100 300 1000 > $1/ata.html
|
||||
source mk_mean_script.sh trisolve $1 11 100 300 1000 > $1/trisolve.html
|
||||
source mk_mean_script.sh cholesky $1 11 100 300 1000 > $1/cholesky.html
|
||||
|
||||
## compile the web page ##
|
||||
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include "bench_parameter.hh"
|
||||
#include "utils/xy_file.hh"
|
||||
#include <set>
|
||||
|
||||
using namespace std;
|
||||
|
||||
void read_xy_file(const string & filename, vector<int> & tab_sizes, vector<double> & tab_mflops);
|
||||
double mean_calc(const vector<int> & tab_sizes, const vector<double> & tab_mflops, const int size_min, const int size_max);
|
||||
|
||||
class Lib_Mean{
|
||||
@@ -152,29 +152,6 @@ int main( int argc , char *argv[] )
|
||||
|
||||
}
|
||||
|
||||
void read_xy_file(const string & filename, vector<int> & tab_sizes, vector<double> & tab_mflops){
|
||||
|
||||
ifstream input_file (filename.c_str(),ios::in) ;
|
||||
|
||||
if (!input_file){
|
||||
INFOS("!!! Error opening "<<filename);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int nb_point=0;
|
||||
int size=0;
|
||||
double mflops=0;
|
||||
|
||||
while (input_file >> size >> mflops ){
|
||||
nb_point++;
|
||||
tab_sizes.push_back(size);
|
||||
tab_mflops.push_back(mflops);
|
||||
}
|
||||
SCRUTE(nb_point);
|
||||
|
||||
input_file.close();
|
||||
}
|
||||
|
||||
double mean_calc(const vector<int> & tab_sizes, const vector<double> & tab_mflops, const int size_min, const int size_max){
|
||||
|
||||
int size=tab_sizes.size();
|
||||
|
||||
3
bench/btl/data/trisolve.hh
Normal file
3
bench/btl/data/trisolve.hh
Normal file
@@ -0,0 +1,3 @@
|
||||
set title "{/*1.5 triangular solver (X = inv(L) * X)}" 0.000000,0.000000
|
||||
set xlabel "matrix-vector size" 0.000000,0.000000
|
||||
set xrange [6:1000]
|
||||
Reference in New Issue
Block a user