You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.9 KiB

  1. //=====================================================
  2. // File : bench_parameter.hh
  3. // Author : L. Plagne <laurent.plagne@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. // minimal time for each measurement
  23. #define REAL_TYPE float
  24. // minimal time for each measurement
  25. #define MIN_TIME 0.2
  26. // nb of point on bench curves
  27. #define NB_POINT 100
  28. // min vector size for axpy bench
  29. #define MIN_AXPY 5
  30. // max vector size for axpy bench
  31. #define MAX_AXPY 1000000
  32. // min matrix size for matrix vector product bench
  33. #define MIN_MV 5
  34. // max matrix size for matrix vector product bench
  35. #define MAX_MV 3000
  36. // min matrix size for matrix matrix product bench
  37. #define MIN_MM 5
  38. // max matrix size for matrix matrix product bench
  39. #define MAX_MM MAX_MV
  40. // min matrix size for LU bench
  41. #define MIN_LU 5
  42. // max matrix size for LU bench
  43. #define MAX_LU 3000
  44. // max size for tiny vector and matrix
  45. #define TINY_MV_MAX_SIZE 16
  46. // default nb_sample for x86 timer
  47. #define DEFAULT_NB_SAMPLE 1000
  48. // how many times we run a single bench (keep the best perf)
  49. #define DEFAULT_NB_TRIES 3
  50. #endif