Files | Functions
Memory Resource Management

Files

file  memory_resource.hpp
 

Functions

rmm::device_async_resource_ref cudf::get_current_device_resource_ref ()
 Get the current device memory resource reference. More...
 
cuda::mr::any_resource< cuda::mr::device_accessible > cudf::set_current_device_resource (cuda::mr::any_resource< cuda::mr::device_accessible > mr)
 Set the current device memory resource. More...
 
cuda::mr::any_resource< cuda::mr::device_accessible > cudf::set_current_device_resource_ref (rmm::device_async_resource_ref mr)
 Set the current device memory resource reference. More...
 
cuda::mr::any_resource< cuda::mr::device_accessible > cudf::reset_current_device_resource ()
 Reset the current device memory resource to the initial resource. More...
 
cuda::mr::any_resource< cuda::mr::device_accessible > cudf::reset_current_device_resource_ref ()
 Reset the current device memory resource reference to the initial resource. More...
 

Detailed Description

Function Documentation

◆ get_current_device_resource_ref()

rmm::device_async_resource_ref cudf::get_current_device_resource_ref ( )
inline

Get the current device memory resource reference.

Returns
The current device memory resource reference.

Definition at line 27 of file memory_resource.hpp.

◆ reset_current_device_resource()

cuda::mr::any_resource<cuda::mr::device_accessible> cudf::reset_current_device_resource ( )
inline

Reset the current device memory resource to the initial resource.

Returns
An owning any_resource holding the previous resource.

Definition at line 67 of file memory_resource.hpp.

◆ reset_current_device_resource_ref()

cuda::mr::any_resource<cuda::mr::device_accessible> cudf::reset_current_device_resource_ref ( )
inline

Reset the current device memory resource reference to the initial resource.

Deprecated:
Use reset_current_device_resource instead.
Returns
An owning any_resource holding the previous resource.

Definition at line 81 of file memory_resource.hpp.

◆ set_current_device_resource()

cuda::mr::any_resource<cuda::mr::device_accessible> cudf::set_current_device_resource ( cuda::mr::any_resource< cuda::mr::device_accessible >  mr)
inline

Set the current device memory resource.

Parameters
mrThe new device memory resource.
Returns
An owning any_resource holding the previous resource.

Definition at line 38 of file memory_resource.hpp.

◆ set_current_device_resource_ref()

cuda::mr::any_resource<cuda::mr::device_accessible> cudf::set_current_device_resource_ref ( rmm::device_async_resource_ref  mr)
inline

Set the current device memory resource reference.

Deprecated:
Use set_current_device_resource instead.

The object referenced by mr must outlive the last use of the resource, otherwise behavior is undefined. It is the caller's responsibility to maintain the lifetime of the resource object.

Parameters
mrThe new device memory resource reference.
Returns
An owning any_resource holding the previous resource.

Definition at line 57 of file memory_resource.hpp.