21 #include <cuda_runtime_api.h>
25 #include <type_traits>
30 template <device_type dst_type, device_type src_type,
typename T>
32 std::conjunction_v<std::disjunction<std::bool_constant<dst_type == device_type::gpu>,
33 std::bool_constant<src_type == device_type::gpu>>,
34 std::bool_constant<GPU_ENABLED>>,
std::enable_if_t< std::conjunction_v< std::bool_constant< dst_type==device_type::cpu >, std::bool_constant< src_type==device_type::cpu > >, void > copy(T *dst, T const *src, uint32_t size, cuda_stream stream)
Definition: cpu.hpp:33
Definition: buffer.hpp:35
int cuda_stream
Definition: cuda_stream.hpp:25
void cuda_check(error_t const &err) noexcept(!GPU_ENABLED)
Definition: cuda_check.hpp:26