Skip to content

Commit

Permalink
chore(gpu): remove decompressed ct comparison btw cpu and gpu
Browse files Browse the repository at this point in the history
The results are not expected to match bitwise
  • Loading branch information
agnesLeroy committed Nov 4, 2024
1 parent 8d53fa1 commit fdb5d17
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,43 +173,13 @@ impl CudaCompressedCiphertextList {
/// .push(d_ct3, &streams)
/// .build(&cuda_compression_key, &streams);
///
/// let converted_compressed = cuda_compressed.to_compressed_ciphertext_list(&streams);
/// let reference_compressed = CompressedCiphertextListBuilder::new()
/// .push(ct1)
/// .push(ct2)
/// .push(ct3)
/// .build(&compression_key);
///
/// let converted_compressed = cuda_compressed.to_compressed_ciphertext_list(&streams);
///
/// let decompressed1: RadixCiphertext = converted_compressed
/// .get(0, &decompression_key)
/// .unwrap()
/// .unwrap();
/// let reference_decompressed1 = reference_compressed
/// .get(0, &decompression_key)
/// .unwrap()
/// .unwrap();
/// assert_eq!(decompressed1, reference_decompressed1);
///
/// let decompressed2: SignedRadixCiphertext = converted_compressed
/// .get(1, &decompression_key)
/// .unwrap()
/// .unwrap();
/// let reference_decompressed2 = reference_compressed
/// .get(1, &decompression_key)
/// .unwrap()
/// .unwrap();
/// assert_eq!(decompressed2, reference_decompressed2);
///
/// let decompressed3: BooleanBlock = converted_compressed
/// .get(2, &decompression_key)
/// .unwrap()
/// .unwrap();
/// let reference_decompressed3 = reference_compressed
/// .get(2, &decompression_key)
/// .unwrap()
/// .unwrap();
/// assert_eq!(decompressed3, reference_decompressed3);
/// assert_eq!(converted_compressed, reference_compressed);
/// ```
pub fn to_compressed_ciphertext_list(&self, streams: &CudaStreams) -> CompressedCiphertextList {
let glwe_list = self
Expand Down

0 comments on commit fdb5d17

Please sign in to comment.