Skip to content

Commit

Permalink
fix(gpu): fix wrong assert in division
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermo-oyarzun committed Feb 21, 2025
1 parent 6b21bff commit 8fa310d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/tfhe-cuda-backend/cuda/src/integer/div_rem.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ __host__ void host_unsigned_integer_div_rem_kb(
cuda_synchronize_stream(mem_ptr->sub_streams_3[j], gpu_indexes[j]);
}

assert(first_trivial_block - 1 == cleaned_merged_interesting_remainder.len);
assert(first_trivial_block - 1 == new_remainder.len);
assert(first_trivial_block == cleaned_merged_interesting_remainder.len);
assert(first_trivial_block == new_remainder.len);

remainder1.copy_from(cleaned_merged_interesting_remainder, 0,
first_trivial_block - 1, streams[0], gpu_indexes[0]);
Expand Down

0 comments on commit 8fa310d

Please sign in to comment.