Loading...
Searching...
No Matches
resource_ref.hpp File Reference
#include <rmm/detail/error.hpp>
#include <rmm/detail/export.hpp>
#include <cuda/memory_resource>

Go to the source code of this file.

Namespaces

namespace  rmm
 The top-level namespace containing all RMM functionality.

Typedefs

using rmm::device_resource_ref = cuda::mr::synchronous_resource_ref<cuda::mr::device_accessible>
 Alias for a cuda::mr::synchronous_resource_ref with the property cuda::mr::device_accessible.
using rmm::device_async_resource_ref = cuda::mr::resource_ref<cuda::mr::device_accessible>
 Alias for a cuda::mr::resource_ref with the property cuda::mr::device_accessible.
using rmm::host_resource_ref = cuda::mr::synchronous_resource_ref<cuda::mr::host_accessible>
 Alias for a cuda::mr::synchronous_resource_ref with the property cuda::mr::host_accessible.
using rmm::host_async_resource_ref = cuda::mr::resource_ref<cuda::mr::host_accessible>
 Alias for a cuda::mr::resource_ref with the property cuda::mr::host_accessible.
using rmm::host_device_resource_ref
 Alias for a cuda::mr::synchronous_resource_ref with the properties cuda::mr::host_accessible and cuda::mr::device_accessible.
using rmm::host_device_async_resource_ref
 Alias for a cuda::mr::resource_ref with the properties cuda::mr::host_accessible and cuda::mr::device_accessible.

Functions

template<class Resource>
device_async_resource_ref rmm::to_device_async_resource_ref_checked (Resource *res)
 Convert pointer to memory resource into device_async_resource_ref, checking for nullptr.