RMM  23.12
RAPIDS Memory Manager
Public Member Functions | List of all members
rmm::exec_policy Class Reference

Helper class usable as a Thrust CUDA execution policy that uses RMM for temporary memory allocation on the specified stream. More...

#include <exec_policy.hpp>

Inheritance diagram for rmm::exec_policy:
Inheritance graph
[legend]
Collaboration diagram for rmm::exec_policy:
Collaboration graph
[legend]

Public Member Functions

 exec_policy (cuda_stream_view stream=cuda_stream_default, rmm::mr::device_memory_resource *mr=mr::get_current_device_resource())
 Construct a new execution policy object. More...
 

Detailed Description

Helper class usable as a Thrust CUDA execution policy that uses RMM for temporary memory allocation on the specified stream.

Constructor & Destructor Documentation

◆ exec_policy()

rmm::exec_policy::exec_policy ( cuda_stream_view  stream = cuda_stream_default,
rmm::mr::device_memory_resource mr = mr::get_current_device_resource() 
)
inlineexplicit

Construct a new execution policy object.

Parameters
streamThe stream on which to allocate temporary memory
mrThe resource to use for allocating temporary memory

The documentation for this class was generated from the following file: