Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vuule committed Dec 23, 2024
1 parent 9b8fc71 commit 7aaf5ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/src/io/comp/comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ void device_compress(compression_type compression,
device_span<compression_result> results,
rmm::cuda_stream_view stream)
{
if (compression == compression_type::NONE) { return; }

auto const nvcomp_type = to_nvcomp_compression(compression);
auto nvcomp_disabled = nvcomp_type.has_value() ? nvcomp::is_compression_disabled(*nvcomp_type)
: "invalid compression type";
Expand All @@ -144,8 +146,8 @@ void host_compress(compression_type compression,
device_span<compression_result> results,
rmm::cuda_stream_view stream)
{
CUDF_FUNC_RANGE();
if (compression == compression_type::NONE) { return; }

auto const num_blocks = inputs.size();
auto h_results = cudf::detail::make_host_vector<compression_result>(num_blocks, stream);
auto const h_inputs = cudf::detail::make_host_vector_async(inputs, stream);
Expand Down

0 comments on commit 7aaf5ed

Please sign in to comment.