Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Jan 30, 2025
1 parent 0022938 commit 6eda42c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cpp/include/kvikio/parallel_operation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,7 @@ std::future<std::size_t> parallel_io(F op,
std::size_t task_size,
std::size_t devPtr_offset)
{
static_assert(std::is_invocable_r_v<std::size_t,
decltype(op),
decltype(buf),
decltype(size),
decltype(file_offset),
decltype(devPtr_offset)>);
static_assert(std::is_invocable_r_v<std::size_t, F, T, std::size_t, std::size_t, std::size_t>);

if (task_size == 0) { throw std::invalid_argument("`task_size` cannot be zero"); }

Expand Down

0 comments on commit 6eda42c

Please sign in to comment.