mirror of
https://github.com/amd/blis.git
synced 2026-05-11 17:50:00 +00:00
Details: - Added the ability to induce complex domain level-3 operations via new virtual complex micro-kernels which are implemented via only real domain micro-kernels. Two new implementations are provided: 4m and 3m. 4m implements complex matrix multiplication in terms of four real matrix multiplications, where as 3m uses only three and thus is capable of even higher (than peak) performance. However, the 3m method has somewhat weaker numerical properties, making it less desirable in general. - Further refined packing routines, which were recently revamped, and added packing functionality for 4m and 3m. - Some modifications to trmm and trsm macro-kernels to facilitate indexing into micro-panels which were packed for 4m/3m virtual kernels. - Added 4m and 3m interfaces for each level-3 operation. - Various other minor changes to facilitate 4m/3m methods.
71 lines
2.3 KiB
C
71 lines
2.3 KiB
C
/*
|
|
|
|
BLIS
|
|
An object-based framework for developing high-performance BLAS-like
|
|
libraries.
|
|
|
|
Copyright (C) 2014, 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.
|
|
|
|
*/
|
|
|
|
#ifndef BLIS_COMPLEX_MACRO_DEFS_H
|
|
#define BLIS_COMPLEX_MACRO_DEFS_H
|
|
|
|
|
|
// -- Real and imaginary accessor macros --
|
|
|
|
|
|
#define bli_sreal( x ) ( x )
|
|
#define bli_simag( x ) ( 0.0F )
|
|
#define bli_dreal( x ) ( x )
|
|
#define bli_dimag( x ) ( 0.0 )
|
|
|
|
|
|
#ifndef BLIS_ENABLE_C99_COMPLEX
|
|
|
|
|
|
#define bli_creal( x ) ( (x).real )
|
|
#define bli_cimag( x ) ( (x).imag )
|
|
#define bli_zreal( x ) ( (x).real )
|
|
#define bli_zimag( x ) ( (x).imag )
|
|
|
|
|
|
#else // ifdef BLIS_ENABLE_C99_COMPLEX
|
|
|
|
|
|
#define bli_creal( x ) ( crealf(x) )
|
|
#define bli_cimag( x ) ( cimagf(x) )
|
|
#define bli_zreal( x ) ( creal(x) )
|
|
#define bli_zimag( x ) ( cimag(x) )
|
|
|
|
|
|
#endif // BLIS_ENABLE_C99_COMPLEX
|
|
|
|
|
|
#endif
|
|
|