mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 22:57:59 -05:00
fix(gpu): fix decompression mem leak
This commit is contained in:
committed by
Agnès Leroy
parent
c10f1def70
commit
62780ac500
@@ -92,10 +92,6 @@ template <typename Torus> struct int_decompression {
|
|||||||
|
|
||||||
// rescale is only needed on 64-bit decompression
|
// rescale is only needed on 64-bit decompression
|
||||||
if constexpr (std::is_same_v<Torus, uint64_t>) {
|
if constexpr (std::is_same_v<Torus, uint64_t>) {
|
||||||
decompression_rescale_lut = new int_radix_lut<Torus>(
|
|
||||||
streams, encryption_params, 1, num_blocks_to_decompress,
|
|
||||||
allocate_gpu_memory, size_tracker);
|
|
||||||
|
|
||||||
// Rescale is done using an identity LUT
|
// Rescale is done using an identity LUT
|
||||||
// Here we do not divide by message_modulus
|
// Here we do not divide by message_modulus
|
||||||
// Example: in the 2_2 case we are mapping a 2-bit message onto a 4-bit
|
// Example: in the 2_2 case we are mapping a 2-bit message onto a 4-bit
|
||||||
|
|||||||
Reference in New Issue
Block a user