From 74c9465672f8df5da6ca47cc2c1dd5dedb921e2b Mon Sep 17 00:00:00 2001 From: wernsaar Date: Mon, 18 Aug 2014 12:18:10 +0200 Subject: [PATCH] added optimized dsymv_U kernel for bulldozer --- kernel/x86_64/KERNEL.BULLDOZER | 2 + kernel/x86_64/dsymv_U.c | 208 +++++++++++++++++++++ kernel/x86_64/dsymv_U_microk_bulldozer-2.c | 117 ++++++++++++ 3 files changed, 327 insertions(+) create mode 100644 kernel/x86_64/dsymv_U.c create mode 100644 kernel/x86_64/dsymv_U_microk_bulldozer-2.c diff --git a/kernel/x86_64/KERNEL.BULLDOZER b/kernel/x86_64/KERNEL.BULLDOZER index 19bf7fd32..03925cc19 100644 --- a/kernel/x86_64/KERNEL.BULLDOZER +++ b/kernel/x86_64/KERNEL.BULLDOZER @@ -1,3 +1,5 @@ +DSYMV_U_KERNEL = dsymv_U.c + SGEMVNKERNEL = sgemv_n.c SGEMVTKERNEL = sgemv_t.c diff --git a/kernel/x86_64/dsymv_U.c b/kernel/x86_64/dsymv_U.c new file mode 100644 index 000000000..1f22abe8d --- /dev/null +++ b/kernel/x86_64/dsymv_U.c @@ -0,0 +1,208 @@ +/*************************************************************************** +Copyright (c) 2013, The OpenBLAS Project +All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. 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. +3. Neither the name of the OpenBLAS project 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 OPENBLAS PROJECT 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. +*****************************************************************************/ + + +#include "common.h" + +#if defined(BULLDOZER) +#include "dsymv_U_microk_bulldozer-2.c" +#endif + + +#ifndef HAVE_KERNEL_8x2 + +static void dsymv_kernel_8x2(BLASLONG n, FLOAT *a0, FLOAT *a1, FLOAT *xp, FLOAT *yp, FLOAT *temp1, FLOAT *temp2) +{ + FLOAT at0,at1,at2,at3; + FLOAT tmp2[2] = { 0.0, 0.0 }; + FLOAT tp0; + FLOAT tp1; + BLASLONG i; + + tp0 = temp1[0]; + tp1 = temp1[1]; + + for (i=0; i