Home | History | Annotate | Download | only in generic_bench
      1 //=====================================================
      2 // File   :  bench_parameter.hh
      3 // Author :  L. Plagne <laurent.plagne (at) edf.fr)>
      4 // Copyright (C) EDF R&D,  lun sep 30 14:23:16 CEST 2002
      5 //=====================================================
      6 //
      7 // This program is free software; you can redistribute it and/or
      8 // modify it under the terms of the GNU General Public License
      9 // as published by the Free Software Foundation; either version 2
     10 // of the License, or (at your option) any later version.
     11 //
     12 // This program is distributed in the hope that it will be useful,
     13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 // GNU General Public License for more details.
     16 // You should have received a copy of the GNU General Public License
     17 // along with this program; if not, write to the Free Software
     18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     19 //
     20 #ifndef BENCH_PARAMETER_HH
     21 #define BENCH_PARAMETER_HH
     22 
     23 // minimal time for each measurement
     24 #define REAL_TYPE float
     25 // minimal time for each measurement
     26 #define MIN_TIME 0.2
     27 // nb of point on bench curves
     28 #define NB_POINT 100
     29 // min vector size for axpy bench
     30 #define MIN_AXPY 5
     31 // max vector size for axpy bench
     32 #define MAX_AXPY 1000000
     33 // min matrix size for matrix vector product bench
     34 #define MIN_MV 5
     35 // max matrix size for matrix vector product bench
     36 #define MAX_MV 3000
     37 // min matrix size for matrix matrix product bench
     38 #define MIN_MM 5
     39 // max matrix size for matrix matrix product bench
     40 #define MAX_MM MAX_MV
     41 // min matrix size for LU bench
     42 #define MIN_LU 5
     43 // max matrix size for LU bench
     44 #define MAX_LU 3000
     45 // max size for tiny vector and matrix
     46 #define TINY_MV_MAX_SIZE 16
     47 // default nb_sample for x86 timer
     48 #define DEFAULT_NB_SAMPLE 1000
     49 
     50 // how many times we run a single bench (keep the best perf)
     51 #define DEFAULT_NB_TRIES 3
     52 
     53 #endif
     54