Skip to content

Commit

Permalink
fix(gpu): fix comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Sep 18, 2024
1 parent c0878f1 commit 8a7db69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backends/tfhe-cuda-backend/cuda/src/integer/comparison.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ __host__ void are_all_comparisons_block_true(
new int_radix_lut<Torus>(streams, gpu_indexes, gpu_count, params,
max_value, num_radix_blocks, true);

auto is_equal_to_num_blocks_lut_f = [max_value,
chunk_length](Torus x) -> Torus {
return (x & max_value) == chunk_length;
auto is_equal_to_num_blocks_lut_f = [chunk_length](Torus x) -> Torus {
return x == chunk_length;
};
generate_device_accumulator<Torus>(
streams[0], gpu_indexes[0], new_lut->get_lut(gpu_indexes[0], 0),
Expand Down

0 comments on commit 8a7db69

Please sign in to comment.