1 /*
3 BLIS
4 An object-based framework for developing high-performance BLAS-like
5 libraries.
7 Copyright (C) 2014, The University of Texas at Austin
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are
11 met:
12 - Redistributions of source code must retain the above copyright
13 notice, this list of conditions and the following disclaimer.
14 - Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
17 - Neither the name of The University of Texas at Austin nor the names
18 of its contributors may be used to endorse or promote products
19 derived from this software without specific prior written permission.
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
35 struct gemv_s
36 {
37 impl_t impl_type;
38 varnum_t var_num;
39 blksz_t* b;
40 struct scalv_s* sub_scalv;
41 struct packm_s* sub_packm_a;
42 struct packv_s* sub_packv_x;
43 struct packv_s* sub_packv_y;
44 struct gemv_s* sub_gemv;
45 struct unpackv_s* sub_unpackv_y;
46 };
47 typedef struct gemv_s gemv_t;
49 #define cntl_sub_gemv( cntl ) cntl->sub_gemv
50 #define cntl_sub_gemv_rp( cntl ) cntl->sub_gemv_rp
51 #define cntl_sub_gemv_cp( cntl ) cntl->sub_gemv_cp
52 #define cntl_sub_gemv_n_rp( cntl ) cntl->sub_gemv_n_rp
53 #define cntl_sub_gemv_n_cp( cntl ) cntl->sub_gemv_n_cp
54 #define cntl_sub_gemv_t_rp( cntl ) cntl->sub_gemv_t_rp
55 #define cntl_sub_gemv_t_cp( cntl ) cntl->sub_gemv_t_cp
57 void bli_gemv_cntl_init( void );
58 void bli_gemv_cntl_finalize( void );
59 gemv_t* bli_gemv_cntl_obj_create( impl_t impl_type,
60 varnum_t var_num,
61 blksz_t* b,
62 scalv_t* sub_scalv,
63 packm_t* sub_packm_a,
64 packv_t* sub_packv_x,
65 packv_t* sub_packv_y,
66 gemv_t* sub_gemv,
67 unpackv_t* sub_unpackv_y );
68 void bli_gemv_cntl_obj_init( gemv_t* cntl,
69 impl_t impl_type,
70 varnum_t var_num,
71 blksz_t* b,
72 scalv_t* sub_scalv,
73 packm_t* sub_packm_a,
74 packv_t* sub_packv_x,
75 packv_t* sub_packv_y,
76 gemv_t* sub_gemv,
77 unpackv_t* sub_unpackv_y );