| 1 | /* |
| 2 | |
| 3 | BLIS |
| 4 | An object-based framework for developing high-performance BLAS-like |
| 5 | libraries. |
| 6 | |
| 7 | Copyright (C) 2014, The University of Texas at Austin |
| 8 | |
| 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(s) of the copyright holder(s) nor the names of its |
| 18 | contributors may be used to endorse or promote products derived |
| 19 | from this software without specific prior written permission. |
| 20 | |
| 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. |
| 32 | |
| 33 | */ |
| 34 | |
| 35 | struct hemv_s |
| 36 | { |
| 37 | impl_t impl_type; |
| 38 | varnum_t var_num; |
| 39 | bszid_t bszid; |
| 40 | struct scalv_s* sub_scalv; |
| 41 | struct packm_s* sub_packm_a11; |
| 42 | struct packv_s* sub_packv_x1; |
| 43 | struct packv_s* sub_packv_y1; |
| 44 | struct gemv_s* sub_gemv_n_rp; |
| 45 | struct gemv_s* sub_gemv_n_cp; |
| 46 | struct gemv_s* sub_gemv_t_rp; |
| 47 | struct gemv_s* sub_gemv_t_cp; |
| 48 | struct hemv_s* sub_hemv; |
| 49 | struct unpackv_s* sub_unpackv_y1; |
| 50 | }; |
| 51 | typedef struct hemv_s hemv_t; |
| 52 | |
| 53 | #define bli_cntl_sub_hemv( cntl ) cntl->sub_hemv |
| 54 | |
| 55 | void bli_hemv_cntl_init( void ); |
| 56 | void bli_hemv_cntl_finalize( void ); |
| 57 | hemv_t* bli_hemv_cntl_obj_create( impl_t impl_type, |
| 58 | varnum_t var_num, |
| 59 | bszid_t bszid, |
| 60 | scalv_t* sub_scalv, |
| 61 | packm_t* sub_packm_a11, |
| 62 | packv_t* sub_packv_x1, |
| 63 | packv_t* sub_packv_y1, |
| 64 | gemv_t* sub_gemv_n_rp, |
| 65 | gemv_t* sub_gemv_n_cp, |
| 66 | gemv_t* sub_gemv_t_rp, |
| 67 | gemv_t* sub_gemv_t_cp, |
| 68 | hemv_t* sub_hemv, |
| 69 | unpackv_t* sub_unpackv_y1 ); |
| 70 | void bli_hemv_cntl_obj_init( hemv_t* cntl, |
| 71 | impl_t impl_type, |
| 72 | varnum_t var_num, |
| 73 | bszid_t bszid, |
| 74 | scalv_t* sub_scalv, |
| 75 | packm_t* sub_packm_a11, |
| 76 | packv_t* sub_packv_x1, |
| 77 | packv_t* sub_packv_y1, |
| 78 | gemv_t* sub_gemv_n_rp, |
| 79 | gemv_t* sub_gemv_n_cp, |
| 80 | gemv_t* sub_gemv_t_rp, |
| 81 | gemv_t* sub_gemv_t_cp, |
| 82 | hemv_t* sub_hemv, |
| 83 | unpackv_t* sub_unpackv_y1 ); |