FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
copy_stride_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/copy_stride.hpp>
9
10FEAT_DISABLE_WARNINGS
11#include <mkl.h>
12FEAT_RESTORE_WARNINGS
13
14namespace FEAT::LAFEM::Arch
15{
16 void CopyStride::exec_mkl_impl(float * r, const float * const x, const int stride_r, const int comp_r, const int stride_x, const int comp_x, const Index size)
17 {
18 cblas_scopy(static_cast<MKL_INT>(size), &x[comp_x], static_cast<MKL_INT>(stride_x), &r[comp_r], static_cast<MKL_INT>(stride_r));
19 }
20
21 void CopyStride::exec_mkl_impl(double * r, const double * const x, const int stride_r, const int comp_r, const int stride_x, const int comp_x, const Index size)
22 {
23 cblas_dcopy(static_cast<MKL_INT>(size), &x[comp_x], static_cast<MKL_INT>(stride_x), &r[comp_r], static_cast<MKL_INT>(stride_r));
24 }
25} // namespace FEAT::LAFEM::Arch
FEAT Kernel base header.
std::uint64_t Index
Index data type.