22 #include <rmm/device_buffer.hpp> 
   24 #include <cuda_runtime_api.h> 
   26 #include <type_traits> 
   38                 cudaStream_t stream) noexcept(
false)
 
   41         return rmm::device_buffer{size * 
sizeof(
value_type), rmm::cuda_stream_view{stream}};
 
   46   auto* 
get()
 const { 
return reinterpret_cast<T*
>(data_.data()); }
 
   49   mutable rmm::device_buffer data_;
 
Definition: buffer.hpp:35
 
device_type
Definition: device_type.hpp:18
 
owning_buffer()
Definition: gpu.hpp:34
 
auto * get() const
Definition: gpu.hpp:46
 
std::remove_const_t< T > value_type
Definition: gpu.hpp:33
 
owning_buffer(device_id< device_type::gpu > device_id, std::size_t size, cudaStream_t stream) noexcept(false)
Definition: gpu.hpp:36