1212
1313#include < cudf/detail/null_mask.hpp>
1414#include < cudf/detail/structs/utilities.hpp>
15+ #include < cudf/detail/utilities/buffer_factories.hpp>
1516#include < cudf/detail/utilities/cuda_memcpy.hpp>
1617#include < cudf/detail/utilities/vector_factories.hpp>
1718#include < cudf/io/datasource.hpp>
2223#include < cudf/utilities/span.hpp>
2324#include < cudf/utilities/traits.hpp>
2425
25- #include < rmm/device_uvector.hpp>
2626#include < rmm/exec_policy.hpp>
2727
2828#include < cuda/buffer>
@@ -297,7 +297,8 @@ cuda::device_buffer<std::uint8_t> decompress_data(
297297
298298 cuda::device_buffer<std::uint8_t > decompressed_data (
299299 stream, cudf::get_current_device_resource_ref (), uncompressed_data_size, cuda::no_init);
300- rmm::device_uvector<device_span<uint8_t >> decompressed_blocks (num_blocks, stream);
300+ cuda::device_buffer<device_span<uint8_t >> decompressed_blocks (
301+ stream, cudf::get_current_device_resource_ref (), num_blocks, cuda::no_init);
301302 thrust::tabulate (rmm::exec_policy_nosync (stream, cudf::get_current_device_resource_ref ()),
302303 decompressed_blocks.begin (),
303304 decompressed_blocks.end (),
@@ -307,7 +308,8 @@ cuda::device_buffer<std::uint8_t> decompress_data(
307308 return device_span<uint8_t >{data + off[i], size[i]};
308309 });
309310
310- rmm::device_uvector<codec_exec_result> decomp_results (num_blocks, stream);
311+ cuda::device_buffer<codec_exec_result> decomp_results (
312+ stream, cudf::get_current_device_resource_ref (), num_blocks, cuda::no_init);
311313 thrust::fill (rmm::exec_policy_nosync (stream, cudf::get_current_device_resource_ref ()),
312314 decomp_results.begin (),
313315 decomp_results.end (),
@@ -425,7 +427,7 @@ std::vector<column_buffer> decode_data(metadata& meta,
425427 }
426428 }
427429
428- auto block_list = cudf::detail::make_device_uvector_async (
430+ auto block_list = cudf::detail::make_device_buffer_async (
429431 meta.block_list , stream, cudf::get_current_device_resource_ref ());
430432
431433 schema_desc.host_to_device_async (stream);
@@ -539,8 +541,10 @@ table_with_metadata read_avro(std::unique_ptr<cudf::io::datasource>&& source,
539541 }
540542 }
541543
542- auto d_global_dict = rmm::device_uvector<string_index_pair>(0 , stream);
543- auto d_global_dict_data = rmm::device_uvector<char >(0 , stream);
544+ cuda::device_buffer<string_index_pair> d_global_dict (
545+ stream, cudf::get_current_device_resource_ref (), 0 , cuda::no_init);
546+ cuda::device_buffer<char > d_global_dict_data (
547+ stream, cudf::get_current_device_resource_ref (), 0 , cuda::no_init);
544548
545549 if (total_dictionary_entries > 0 ) {
546550 auto h_global_dict =
@@ -566,9 +570,9 @@ table_with_metadata read_avro(std::unique_ptr<cudf::io::datasource>&& source,
566570 }
567571 }
568572
569- d_global_dict = cudf::detail::make_device_uvector_async (
573+ d_global_dict = cudf::detail::make_device_buffer_async (
570574 h_global_dict, stream, cudf::get_current_device_resource_ref ());
571- d_global_dict_data = cudf::detail::make_device_uvector_async (
575+ d_global_dict_data = cudf::detail::make_device_buffer_async (
572576 h_global_dict_data, stream, cudf::get_current_device_resource_ref ());
573577
574578 stream.sync ();
0 commit comments