OpenVDB 13.1.0
Loading...
Searching...
No Matches
is_host_accessible_resource< R, typename > Struct Template Reference

Detection trait: is_host_accessible_resource<R>::value is true iff R declares static constexpr bool HOST_ACCESSIBLE = true, i.e. its allocations are mapped into the host address space (e.g. PinnedResource). Defaults to false: allocations are device-resident. More...

#include <nanovdb/cuda/DeviceResource.h>

Detailed Description

template<typename R, typename = void>
struct nanovdb::cuda::is_host_accessible_resource< R, typename >

Detection trait: is_host_accessible_resource<R>::value is true iff R declares static constexpr bool HOST_ACCESSIBLE = true, i.e. its allocations are mapped into the host address space (e.g. PinnedResource). Defaults to false: allocations are device-resident.

Note
Unlike the void_t detections above, this checks the member's VALUE: a resource declaring HOST_ACCESSIBLE = false stays device-resident.