mirror of
https://github.com/amd/blis.git
synced 2026-05-11 17:50:00 +00:00
132 lines
3.4 KiB
C
132 lines
3.4 KiB
C
/*
|
|
|
|
BLIS
|
|
An object-based framework for developing high-performance BLAS-like
|
|
libraries.
|
|
|
|
Copyright (C) 2013, The University of Texas
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted provided that the following conditions are
|
|
met:
|
|
- Redistributions of source code must retain the above copyright
|
|
notice, this list of conditions and the following disclaimer.
|
|
- Redistributions in binary form must reproduce the above copyright
|
|
notice, this list of conditions and the following disclaimer in the
|
|
documentation and/or other materials provided with the distribution.
|
|
- Neither the name of The University of Texas nor the names of its
|
|
contributors may be used to endorse or promote products derived
|
|
from this software without specific prior written permission.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
// -- LEVEL-3 KERNEL DEFINITIONS -----------------------------------------------
|
|
|
|
#include "bl2_gemm_opt_4x2.h"
|
|
#include "bl2_gemmtrsm_l_opt_4x2.h"
|
|
#include "bl2_gemmtrsm_u_opt_4x2.h"
|
|
|
|
// -- dupl --
|
|
|
|
#define DUPL_KERNEL dupl_opt_var1
|
|
|
|
// -- gemm --
|
|
|
|
#define GEMM_UKERNEL gemm_opt_4x2
|
|
|
|
// -- trsm-related --
|
|
|
|
#define GEMMTRSM_L_UKERNEL gemmtrsm_l_opt_4x2
|
|
#define GEMMTRSM_U_UKERNEL gemmtrsm_u_opt_4x2
|
|
|
|
#define TRSM_L_UKERNEL trsm_l_ref_4x2
|
|
#define TRSM_U_UKERNEL trsm_u_ref_4x2
|
|
|
|
|
|
|
|
// -- LEVEL-1F KERNEL DEFINITIONS ----------------------------------------------
|
|
|
|
//#include "bl2_axpy2v_opt_var1.h"
|
|
//#include "bl2_dotaxpyv_opt_var1.h"
|
|
//#include "bl2_axpyf_opt_var1.h"
|
|
//#include "bl2_dotxf_opt_var1.h"
|
|
//#include "bl2_dotxaxpyf_opt_var1.h"
|
|
|
|
// -- axpy2v --
|
|
|
|
#define AXPY2V_KERNEL axpy2v_unb_var1
|
|
|
|
// -- dotaxpyv --
|
|
|
|
#define DOTAXPYV_KERNEL dotaxpyv_unb_var1
|
|
|
|
// -- axpyf --
|
|
|
|
#define AXPYF_KERNEL axpyf_unb_var1
|
|
|
|
// -- dotxf --
|
|
|
|
#define DOTXF_KERNEL dotxf_unb_var1
|
|
|
|
// -- dotxaxpyf --
|
|
|
|
#define DOTXAXPYF_KERNEL dotxaxpyf_unb_var1
|
|
|
|
|
|
|
|
// -- LEVEL-1 KERNEL DEFINITIONS -----------------------------------------------
|
|
|
|
//#include "bl2_axpyv_opt_var1.h"
|
|
//#include "bl2_dotv_opt_var1.h"
|
|
|
|
// -- axpyv --
|
|
|
|
#define AXPYV_KERNEL axpyv_unb_var1
|
|
|
|
// -- copynzv --
|
|
|
|
#define COPYNZV_KERNEL copynzv_unb_var1
|
|
|
|
// -- copyv --
|
|
|
|
#define COPYV_KERNEL copyv_unb_var1
|
|
|
|
// -- dotv --
|
|
|
|
#define DOTV_KERNEL dotv_unb_var1
|
|
|
|
// -- dotxv --
|
|
|
|
#define DOTXV_KERNEL dotxv_unb_var1
|
|
|
|
// -- invertv --
|
|
|
|
#define INVERTV_KERNEL invertv_unb_var1
|
|
|
|
// -- scal2v --
|
|
|
|
#define SCAL2V_KERNEL scal2v_unb_var1
|
|
|
|
// -- scalv --
|
|
|
|
#define SCALV_KERNEL scalv_unb_var1
|
|
|
|
// -- setv --
|
|
|
|
#define SETV_KERNEL setv_unb_var1
|
|
|
|
|