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 560d738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/tfhe-cuda-backend/cuda/src/integer/comparison.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ __host__ void are_all_comparisons_block_true(

auto is_equal_to_num_blocks_lut_f = [max_value,
chunk_length](Torus x) -> Torus {
return (x & max_value) == chunk_length;
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 560d738

Please sign in to comment.