Skip to content

Commit

Permalink
chore(gpu): reuse memory for the single carry propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Feb 2, 2024
1 parent 4ef8045 commit 97feefe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/tfhe-cuda-backend/cuda/include/integer.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,9 @@ template <typename Torus> struct int_sc_prop_memory {
luts_array = new int_radix_lut<Torus>(stream, params, 2, num_radix_blocks,
allocate_gpu_memory);
luts_carry_propagation_sum = new struct int_radix_lut<Torus>(
stream, params, 1, num_radix_blocks, allocate_gpu_memory);
message_acc = new struct int_radix_lut<Torus>(
stream, params, 1, num_radix_blocks, allocate_gpu_memory);
stream, params, 1, num_radix_blocks, luts_array);
message_acc = new struct int_radix_lut<Torus>(stream, params, 1,
num_radix_blocks, luts_array);

auto lut_does_block_generate_carry = luts_array->get_lut(0);
auto lut_does_block_generate_or_propagate = luts_array->get_lut(1);
Expand Down

0 comments on commit 97feefe

Please sign in to comment.