Skip to content

Commit

Permalink
fix(gpu): fix multi-gpu error in division
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Aug 1, 2024
1 parent 5547d92 commit 20c3d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/tfhe-cuda-backend/cuda/include/integer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2796,7 +2796,7 @@ template <typename Torus> struct int_div_rem_memory {
int_div_rem_memory(cudaStream_t *streams, uint32_t *gpu_indexes,
uint32_t gpu_count, int_radix_params params,
uint32_t num_blocks, bool allocate_gpu_memory) {
active_gpu_count = get_active_gpu_count(num_blocks, gpu_count);
active_gpu_count = get_active_gpu_count(2 * num_blocks, gpu_count);

this->params = params;
shift_mem_1 = new int_logical_scalar_shift_buffer<Torus>(
Expand Down

0 comments on commit 20c3d2e

Please sign in to comment.