FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
axpy_dense_mkl.cpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6// includes, FEAT
8#include <kernel/lafem/arch/axpy_dense.hpp>
9
10FEAT_DISABLE_WARNINGS
11#include <mkl.h>
12#include <mkl_spblas.h>
13FEAT_RESTORE_WARNINGS
14
15namespace FEAT::LAFEM::Arch
16{
17 void AxpyDense::exec_mkl_impl(float * r, const float alpha, const float * const x, const Index size)
18 {
19 cblas_saxpy(static_cast<MKL_INT>(size), alpha, x, 1, r, 1);
20 }
21
22 void AxpyDense::exec_mkl_impl(double * r, const double alpha, const double * const x, const Index size)
23 {
24 cblas_daxpy(static_cast<MKL_INT>(size), alpha, x, 1, r, 1);
25 }
26} // namespace FEAT::LAFEM::Arch
FEAT Kernel base header.
std::uint64_t Index
Index data type.