@@ -275,8 +275,11 @@ template <typename T>
275
275
std::vector<T> make_std_vector_async (device_span<T const > source_data, rmm::cuda_stream_view stream)
276
276
{
277
277
std::vector<T> result (source_data.size ());
278
- CUDF_CUDA_TRY (cudaMemcpyAsync (
279
- result.data (), source_data.data (), source_data.size () * sizeof (T), cudaMemcpyDefault, stream.value ()));
278
+ CUDF_CUDA_TRY (cudaMemcpyAsync (result.data (),
279
+ source_data.data (),
280
+ source_data.size () * sizeof (T),
281
+ cudaMemcpyDefault,
282
+ stream.value ()));
280
283
return result;
281
284
}
282
285
@@ -386,7 +389,8 @@ host_vector<T> make_empty_host_vector(size_t capacity, rmm::cuda_stream_view str
386
389
* @return The data copied to the host
387
390
*/
388
391
template <typename T>
389
- host_vector<T> make_host_vector_async (device_span<T const > source_data, rmm::cuda_stream_view stream)
392
+ host_vector<T> make_host_vector_async (device_span<T const > source_data,
393
+ rmm::cuda_stream_view stream)
390
394
{
391
395
auto result = make_host_vector<T>(source_data.size (), stream);
392
396
cuda_memcpy_async<T>(result, source_data, stream);
@@ -435,8 +439,8 @@ host_vector<T> make_host_vector(device_span<T const> source_data, rmm::cuda_stre
435
439
}
436
440
437
441
/* *
438
- * @brief Synchronously construct a `cudf::detail::host_vector` containing a copy of data from a device
439
- * container
442
+ * @brief Synchronously construct a `cudf::detail::host_vector` containing a copy of data from a
443
+ * device container
440
444
*
441
445
* @note This function synchronizes `stream` after the copy.
442
446
*
@@ -489,8 +493,8 @@ host_vector<T> make_pinned_vector(size_t size, rmm::cuda_stream_view stream)
489
493
}
490
494
491
495
/* *
492
- * @brief Asynchronously construct a pinned `cudf::detail::host_vector` containing a copy of data from a
493
- * `device_span`
496
+ * @brief Asynchronously construct a pinned `cudf::detail::host_vector` containing a copy of data
497
+ * from a `device_span`
494
498
*
495
499
* @note This function does not synchronize `stream` after the copy. The returned vector uses
496
500
* a pinned memory resource.
@@ -501,7 +505,8 @@ host_vector<T> make_pinned_vector(size_t size, rmm::cuda_stream_view stream)
501
505
* @return The data copied to the host
502
506
*/
503
507
template <typename T>
504
- host_vector<T> make_pinned_vector_async (device_span<T const > source_data, rmm::cuda_stream_view stream)
508
+ host_vector<T> make_pinned_vector_async (device_span<T const > source_data,
509
+ rmm::cuda_stream_view stream)
505
510
{
506
511
auto result = make_pinned_vector_async<T>(source_data.size (), stream);
507
512
cuda_memcpy_async<T>(result, source_data, stream);
@@ -510,8 +515,8 @@ host_vector<T> make_pinned_vector_async(device_span<T const> source_data, rmm::c
510
515
511
516
/* *
512
517
*
513
- * @brief Asynchronously construct a pinned `cudf::detail::host_vector` containing a copy of data from a
514
- * device container
518
+ * @brief Asynchronously construct a pinned `cudf::detail::host_vector` containing a copy of data
519
+ * from a device container
515
520
*
516
521
* @note This function does not synchronize `stream` after the copy. The returned vector uses
517
522
* a pinned memory resource.
@@ -531,8 +536,8 @@ host_vector<typename Container::value_type> make_pinned_vector_async(Container c
531
536
}
532
537
533
538
/* *
534
- * @brief Synchronously construct a pinned `cudf::detail::host_vector` containing a copy of data from a
535
- * `device_span`
539
+ * @brief Synchronously construct a pinned `cudf::detail::host_vector` containing a copy of data
540
+ * from a `device_span`
536
541
*
537
542
* @note This function does a synchronize on `stream` after the copy. The returned vector uses
538
543
* a pinned memory resource.
@@ -551,8 +556,8 @@ host_vector<T> make_pinned_vector(device_span<T const> source_data, rmm::cuda_st
551
556
}
552
557
553
558
/* *
554
- * @brief Synchronously construct a pinned `cudf::detail::host_vector` containing a copy of data from a
555
- * device container
559
+ * @brief Synchronously construct a pinned `cudf::detail::host_vector` containing a copy of data
560
+ * from a device container
556
561
*
557
562
* @note This function synchronizes `stream` after the copy. The returned vector uses
558
563
* a pinned memory resource.
0 commit comments