thrust

◆ get_global_resource()

template<typename MR >
__host__ MR* thrust::mr::get_global_resource ( )

Returns a global instance of MR, created as a function local static variable.

Template Parameters
MRtype of a memory resource to get an instance from. Must be DefaultConstructible.
Returns
a pointer to a global instance of MR.