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