◆ get_per_device_resource()

template<typename MR , typename DerivedPolicy >
__host__ MR* thrust::get_per_device_resource ( const thrust::detail::execution_policy_base< DerivedPolicy > &  system)

Returns a global instance of MR for the current device of the provided system.

Template Parameters
MRtype of a memory resource to get an instance from. Must be DefaultConstructible.
systemexecution policy for which the resource is requested.
a pointer to a global instance of MR for the current device.

References get_per_device_resource().

Referenced by get_per_device_resource(), and thrust::per_device_allocator< T, Upstream, ExecutionPolicy >::per_device_allocator().