Skip to content

Commit 1bb499f

Browse files
committed
precommit update
Signed-off-by: Jigao Luo <[email protected]>
1 parent 4b1b0b5 commit 1bb499f

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

cpp/include/cudf/detail/utilities/vector_factories.hpp

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,11 @@ template <typename T>
275275
std::vector<T> make_std_vector_async(device_span<T const> source_data, rmm::cuda_stream_view stream)
276276
{
277277
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()));
280283
return result;
281284
}
282285

@@ -386,7 +389,8 @@ host_vector<T> make_empty_host_vector(size_t capacity, rmm::cuda_stream_view str
386389
* @return The data copied to the host
387390
*/
388391
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)
390394
{
391395
auto result = make_host_vector<T>(source_data.size(), stream);
392396
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
435439
}
436440

437441
/**
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
440444
*
441445
* @note This function synchronizes `stream` after the copy.
442446
*
@@ -489,8 +493,8 @@ host_vector<T> make_pinned_vector(size_t size, rmm::cuda_stream_view stream)
489493
}
490494

491495
/**
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`
494498
*
495499
* @note This function does not synchronize `stream` after the copy. The returned vector uses
496500
* a pinned memory resource.
@@ -501,7 +505,8 @@ host_vector<T> make_pinned_vector(size_t size, rmm::cuda_stream_view stream)
501505
* @return The data copied to the host
502506
*/
503507
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)
505510
{
506511
auto result = make_pinned_vector_async<T>(source_data.size(), stream);
507512
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
510515

511516
/**
512517
*
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
515520
*
516521
* @note This function does not synchronize `stream` after the copy. The returned vector uses
517522
* a pinned memory resource.
@@ -531,8 +536,8 @@ host_vector<typename Container::value_type> make_pinned_vector_async(Container c
531536
}
532537

533538
/**
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`
536541
*
537542
* @note This function does a synchronize on `stream` after the copy. The returned vector uses
538543
* a pinned memory resource.
@@ -551,8 +556,8 @@ host_vector<T> make_pinned_vector(device_span<T const> source_data, rmm::cuda_st
551556
}
552557

553558
/**
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
556561
*
557562
* @note This function synchronizes `stream` after the copy. The returned vector uses
558563
* a pinned memory resource.

0 commit comments

Comments
 (0)