mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
fix(gpu): change a type to avoid possible issues when compression is executed for a large batch of LWEs
This commit is contained in:
@@ -136,9 +136,9 @@ host_integer_compress(CudaStreams streams,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Modulus switch
|
// Modulus switch
|
||||||
int size = num_glwes * compression_params.glwe_dimension *
|
uint32_t size = num_glwes * compression_params.glwe_dimension *
|
||||||
compression_params.polynomial_size +
|
compression_params.polynomial_size +
|
||||||
glwe_array_out->total_lwe_bodies_count;
|
glwe_array_out->total_lwe_bodies_count;
|
||||||
|
|
||||||
host_modulus_switch_inplace<Torus>(streams.stream(0), streams.gpu_index(0),
|
host_modulus_switch_inplace<Torus>(streams.stream(0), streams.gpu_index(0),
|
||||||
tmp_glwe_array_out, size,
|
tmp_glwe_array_out, size,
|
||||||
|
|||||||
Reference in New Issue
Block a user