14# include <type_traits>
20 template<
typename T_Platform>
27namespace alpaka::onHost::internal
29 template<alpaka::concepts::DeviceKind T_DeviceKind,
typename T_Any>
30 struct IsDataAccessible::SecondPath<
api::Hip, T_DeviceKind, T_Any>
32 bool operator()(api::Hip usedApi, T_DeviceKind deviceKind, T_Any
const& view)
const
34 alpaka::unused(usedApi);
35 using ApiInterface = ApiHipRt;
36 typename ApiInterface::PointerAttr_t ptrAttributes;
37 ALPAKA_UNIFORM_CUDA_HIP_RT_CHECK(
39 ApiInterface::pointerGetAttributes(&ptrAttributes,
onHost::data(view)));
41 if(ptrAttributes.type == ApiInterface::memoryTypeManaged)
43 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