15# include <type_traits>
21 template<
typename T_Platform>
30 template<alpaka::concepts::DeviceKind T_DeviceKind,
typename T_Any>
33 bool operator()(api::Cuda usedApi, T_DeviceKind deviceKind, T_Any
const& view)
const
35 alpaka::unused(usedApi);
36 using ApiInterface = ApiCudaRt;
37 typename ApiInterface::PointerAttr_t ptrAttributes;
38 ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK(
40 ApiInterface::pointerGetAttributes(&ptrAttributes,
onHost::data(view)));
42 if(ptrAttributes.type == ApiInterface::memoryTypeManaged)
44 if(ptrAttributes.type == ApiInterface::memoryTypeHost
Functionality which is usable on the host CPU controller thread.
decltype(auto) data(auto &&any)
pointer to data of an object
bool operator()(T_DataApi, T_DeviceKind, T_Any const &) const