Skip to content

Commit

Permalink
fix(gpu): fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Dec 17, 2024
1 parent 241b737 commit 072005d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/tfhe-cuda-backend/cuda/src/integer/comparison.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ __host__ void are_all_comparisons_block_true(
h_lut_indexes, num_chunks * sizeof(Torus),
streams[0], gpu_indexes[0]);
is_max_value_lut->broadcast_lut(streams, gpu_indexes, 0);
cuda_synchronize_stream(streams[0], gpu_indexes[0]);
free(h_lut_indexes);
}
lut = is_max_value_lut;
}
Expand Down

0 comments on commit 072005d

Please sign in to comment.