xref: /aosp_15_r20/external/eigen/bench/btl/libs/blaze/main.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li //=====================================================
2*bf2c3715SXin Li // Copyright (C) 2008 Gael Guennebaud <[email protected]>
3*bf2c3715SXin Li //=====================================================
4*bf2c3715SXin Li //
5*bf2c3715SXin Li // This program is free software; you can redistribute it and/or
6*bf2c3715SXin Li // modify it under the terms of the GNU General Public License
7*bf2c3715SXin Li // as published by the Free Software Foundation; either version 2
8*bf2c3715SXin Li // of the License, or (at your option) any later version.
9*bf2c3715SXin Li //
10*bf2c3715SXin Li // This program is distributed in the hope that it will be useful,
11*bf2c3715SXin Li // but WITHOUT ANY WARRANTY; without even the implied warranty of
12*bf2c3715SXin Li // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*bf2c3715SXin Li // GNU General Public License for more details.
14*bf2c3715SXin Li // You should have received a copy of the GNU General Public License
15*bf2c3715SXin Li // along with this program; if not, write to the Free Software
16*bf2c3715SXin Li // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17*bf2c3715SXin Li //
18*bf2c3715SXin Li #include "utilities.h"
19*bf2c3715SXin Li #include "blaze_interface.hh"
20*bf2c3715SXin Li #include "bench.hh"
21*bf2c3715SXin Li #include "basic_actions.hh"
22*bf2c3715SXin Li 
23*bf2c3715SXin Li BTL_MAIN;
24*bf2c3715SXin Li 
main()25*bf2c3715SXin Li int main()
26*bf2c3715SXin Li {
27*bf2c3715SXin Li 
28*bf2c3715SXin Li   bench<Action_axpy<blaze_interface<REAL_TYPE> > >(MIN_AXPY,MAX_AXPY,NB_POINT);
29*bf2c3715SXin Li   bench<Action_axpby<blaze_interface<REAL_TYPE> > >(MIN_AXPY,MAX_AXPY,NB_POINT);
30*bf2c3715SXin Li 
31*bf2c3715SXin Li   bench<Action_matrix_vector_product<blaze_interface<REAL_TYPE> > >(MIN_MV,MAX_MV,NB_POINT);
32*bf2c3715SXin Li   bench<Action_atv_product<blaze_interface<REAL_TYPE> > >(MIN_MV,MAX_MV,NB_POINT);
33*bf2c3715SXin Li   bench<Action_matrix_matrix_product<blaze_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
34*bf2c3715SXin Li   bench<Action_ata_product<blaze_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
35*bf2c3715SXin Li   bench<Action_aat_product<blaze_interface<REAL_TYPE> > >(MIN_MM,MAX_MM,NB_POINT);
36*bf2c3715SXin Li 
37*bf2c3715SXin Li   return 0;
38*bf2c3715SXin Li }
39*bf2c3715SXin Li 
40*bf2c3715SXin Li 
41