23 #include <rmm/detail/thrust_namespace.h>
24 #include <thrust/execution_policy.h>
29 using deleter_t = std::function<void(par_t*)>;
30 using exec_policy_t = std::unique_ptr<par_t, deleter_t>;
41 [[deprecated(
"Use new exec_policy in rmm/exec_policy.hpp")]]
inline exec_policy_t exec_policy(
42 cudaStream_t stream =
nullptr)
46 auto deleter = [alloc](par_t* pointer) {
51 exec_policy_t policy{
new par_t(*alloc), deleter};
An allocator compatible with Thrust containers and algorithms using a device_memory_resource for memo...
Definition: thrust_allocator_adaptor.hpp:46