From a9601fc47d6c24e4d8e2927e0a2a38b76583182b Mon Sep 17 00:00:00 2001 From: Agnes Leroy Date: Thu, 31 Oct 2024 15:39:58 +0100 Subject: [PATCH] chore(gpu): remove decompressed ct comparison btw cpu and gpu The results are not expected to match bitwise --- .../ciphertext/compressed_ciphertext_list.rs | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs b/tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs index de73d9abfd..a33195efaa 100644 --- a/tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs +++ b/tfhe/src/integer/gpu/ciphertext/compressed_ciphertext_list.rs @@ -173,43 +173,7 @@ impl CudaCompressedCiphertextList { /// .push(d_ct3, &streams) /// .build(&cuda_compression_key, &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); /// ``` pub fn to_compressed_ciphertext_list(&self, streams: &CudaStreams) -> CompressedCiphertextList { let glwe_list = self