18 #include <rmm/detail/error.hpp>
19 #include <rmm/detail/export.hpp>
21 #include <cuda/memory_resource>
23 namespace RMM_NAMESPACE {
60 cuda::mr::resource_ref<cuda::mr::host_accessible, cuda::mr::device_accessible>;
67 cuda::mr::async_resource_ref<cuda::mr::host_accessible, cuda::mr::device_accessible>;
78 template <
class Resource>
81 RMM_EXPECTS(res,
"Unexpected null resource pointer.");
cuda::mr::resource_ref< cuda::mr::host_accessible > host_resource_ref
Alias for a cuda::mr::resource_ref with the property cuda::mr::host_accessible.
Definition: resource_ref.hpp:47
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
Alias for a cuda::mr::async_resource_ref with the property cuda::mr::device_accessible.
Definition: resource_ref.hpp:41
cuda::mr::async_resource_ref< cuda::mr::host_accessible > host_async_resource_ref
Alias for a cuda::mr::async_resource_ref with the property cuda::mr::host_accessible.
Definition: resource_ref.hpp:53
cuda::mr::async_resource_ref< cuda::mr::host_accessible, cuda::mr::device_accessible > host_device_async_resource_ref
Alias for a cuda::mr::async_resource_ref with the properties cuda::mr::host_accessible and cuda::mr::...
Definition: resource_ref.hpp:67
cuda::mr::resource_ref< cuda::mr::host_accessible, cuda::mr::device_accessible > host_device_resource_ref
Alias for a cuda::mr::resource_ref with the properties cuda::mr::host_accessible and cuda::mr::device...
Definition: resource_ref.hpp:60
cuda::mr::resource_ref< cuda::mr::device_accessible > device_resource_ref
Alias for a cuda::mr::resource_ref with the property cuda::mr::device_accessible.
Definition: resource_ref.hpp:35
device_async_resource_ref to_device_async_resource_ref_checked(Resource *res)
Convert pointer to memory resource into device_async_resource_ref, checking for nullptr
Definition: resource_ref.hpp:79