Skip to content

Commit

Permalink
chore(gpu): panic in single carry prop if message modulus is 2 (1_1 p…
Browse files Browse the repository at this point in the history
…arams)
  • Loading branch information
agnesLeroy committed Oct 9, 2024
1 parent 61fecd5 commit 4518823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backends/tfhe-cuda-backend/cuda/src/integer/integer.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ void host_propagate_single_carry(cudaStream_t *streams, uint32_t *gpu_indexes,
int_sc_prop_memory<Torus> *mem, void **bsks,
Torus **ksks, uint32_t num_blocks) {
auto params = mem->params;
if (params.message_modulus == 2)
PANIC("Cuda error: single carry propagation is not supported for 1 bit "
"messages")
auto glwe_dimension = params.glwe_dimension;
auto polynomial_size = params.polynomial_size;
auto big_lwe_size = glwe_dimension * polynomial_size + 1;
Expand Down

0 comments on commit 4518823

Please sign in to comment.