Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
DenseVector/HIP/Morpheus_Convert_Impl.hpp
1
24#ifndef MORPHEUS_DENSEVECTOR_HIP_CONVERT_IMPL_HPP
25#define MORPHEUS_DENSEVECTOR_HIP_CONVERT_IMPL_HPP
26
27#include <Morpheus_Macros.hpp>
28#if defined(MORPHEUS_ENABLE_HIP)
29
30#include <Morpheus_Exceptions.hpp>
31#include <Morpheus_SpaceTraits.hpp>
32#include <Morpheus_FormatTraits.hpp>
33#include <Morpheus_FormatTags.hpp>
34#include <Morpheus_Spaces.hpp>
35
36namespace Morpheus {
37
38namespace Impl {
39
40template <typename ExecSpace, typename SourceType, typename DestinationType>
41void convert(
42 const SourceType&, DestinationType&,
43 typename std::enable_if<
44 Morpheus::is_dense_vector_format_container_v<SourceType> &&
45 Morpheus::is_dense_vector_format_container_v<DestinationType> &&
46 Morpheus::has_custom_backend_v<ExecSpace> &&
47 Morpheus::has_hip_execution_space_v<ExecSpace> &&
48 Morpheus::has_access_v<ExecSpace, SourceType, DestinationType>>::type* =
49 nullptr) {
50 throw Morpheus::NotImplementedException("convert<Kokkos::Experimental::HIP>");
51}
52
53} // namespace Impl
54} // namespace Morpheus
55
56#endif // MORPHEUS_ENABLE_HIP
57#endif // MORPHEUS_DENSEVECTOR_HIP_CONVERT_IMPL_HPP
Definition: Morpheus_Exceptions.hpp:43
Generic Morpheus interfaces.
Definition: dummy.cpp:24