From 8c4675dc3ecf4367aafde1a4318ba83da4c0293b Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 11 Mar 2024 15:04:40 -0300 Subject: [PATCH] fix(gpu): fix a bug in integer multiplication --- backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh b/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh index 35277ed016..008ae57429 100644 --- a/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh +++ b/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh @@ -457,7 +457,7 @@ __host__ void host_integer_mult_radix_kb( cuda_memset_async(block_mul_res, 0, big_lwe_size * sizeof(Torus), stream); host_addition(stream, radix_lwe_out, vector_result_sb, block_mul_res, - big_lwe_size, num_blocks); + big_lwe_dimension, num_blocks); host_propagate_single_carry_low_latency( stream, radix_lwe_out, mem_ptr->scp_mem, bsk, ksk, num_blocks);