11#include <alien/core/backend/IVectorConverter.h>
14#include <alien/kernels/sycl/SYCLBackEnd.h>
16#include <alien/kernels/sycl/data/SYCLVector.h>
17#include <alien/kernels/sycl/data/HCSRVector.h>
19#include "alien/kernels/sycl/data/SYCLVectorInternal.h"
20#include "alien/kernels/sycl/data/HCSRVectorInternal.h"
29 HCSRtoSYCLVectorConverter();
30 virtual ~HCSRtoSYCLVectorConverter() {}
46HCSRtoSYCLVectorConverter::HCSRtoSYCLVectorConverter()
62 [&] { cout() <<
"Converting HCSRVector: " << &v <<
" to SYCLVector " << &v2; });
64 v2.internal()->copy(v.internal()->values());
VectorConverterRegisterer.h.
#define REGISTER_VECTOR_CONVERTER(converter)
Macro to register a vector converter.
static T & cast(IVectorImpl *impl, BackEndId backend)
Cast a vector implementation in its actual type.
Interface to handle abstract vectors implementation.
void convert(const IVectorImpl *sourceImpl, IVectorImpl *targetImpl) const
Convert a vector from one format to another.
Alien::BackEndId sourceBackend() const
Get the source backend id.
Alien::BackEndId targetBackend() const
Get the target backend id.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --