From b81692b2df991c43e79e20b6b014f776f02d9611 Mon Sep 17 00:00:00 2001 From: Beka Barbakadze Date: Fri, 26 Jul 2024 13:22:18 +0400 Subject: [PATCH] chore(gpu): add comments inside host_integer_sum_ciphertexts_vec_kb function --- backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh b/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh index 96a410408d..cf2457d07d 100644 --- a/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh +++ b/backends/tfhe-cuda-backend/cuda/src/integer/multiplication.cuh @@ -328,6 +328,9 @@ __host__ void host_integer_sum_ciphertexts_vec_kb( cuda_memcpy_async_to_gpu(d_smart_copy_out, h_smart_copy_out, copy_size, streams[0], gpu_indexes[0]); + // inside d_smart_copy_in there are only -1 values + // it's fine to call smart_copy with same pointer + // as source and destination smart_copy<<>>( new_blocks, new_blocks, d_smart_copy_out, d_smart_copy_in, big_lwe_size);