24#ifndef MORPHEUS_DENSEVECTOR_OPENMP_CONVERT_IMPL_HPP
25#define MORPHEUS_DENSEVECTOR_OPENMP_CONVERT_IMPL_HPP
27#include <Morpheus_Macros.hpp>
28#if defined(MORPHEUS_ENABLE_OPENMP)
30#include <Morpheus_SpaceTraits.hpp>
31#include <Morpheus_FormatTraits.hpp>
32#include <Morpheus_FormatTags.hpp>
33#include <Morpheus_Spaces.hpp>
39template <
typename ExecSpace,
typename SourceType,
typename DestinationType>
41 const SourceType& src, DestinationType& dst,
42 typename std::enable_if<
43 Morpheus::is_dense_vector_format_container_v<SourceType> &&
44 Morpheus::is_dense_vector_format_container_v<DestinationType> &&
45 Morpheus::has_custom_backend_v<ExecSpace> &&
46 Morpheus::has_openmp_execution_space_v<ExecSpace> &&
47 Morpheus::has_access_v<ExecSpace, SourceType, DestinationType>>::type* =
49 using size_type =
typename SourceType::size_type;
51 MORPHEUS_ASSERT(dst.size() >= src.size(),
52 "Destination vector must be of equal or larger size to the "
55#pragma omp parallel for
56 for (size_type i = 0; i < src.size(); i++) {
Generic Morpheus interfaces.
Definition: dummy.cpp:24