Compare commits

...

5 Commits

Author SHA1 Message Date
Guillermo Oyarzun
154ae0288f fix correct number of blocks per iteration 2024-09-30 16:08:05 +02:00
Guillermo Oyarzun
4fd8630623 fix encryption each iteration 2024-09-26 08:30:00 +00:00
Guillermo Oyarzun
f4c63a9ece fix proper output 2024-09-26 07:52:16 +00:00
Guillermo Oyarzun
e5ea39a9dc chore(gpu): add pgail gpu test 2024-09-25 18:12:41 +02:00
Arthur Meyre
197354d9b0 wip: pfail 2024-09-24 09:22:02 +00:00
3 changed files with 3903 additions and 3 deletions

1940
tfhe/examples/p_fail.rs Normal file

File diff suppressed because it is too large Load Diff

1960
tfhe/examples/p_fail_gpu.rs Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -733,7 +733,7 @@ impl CudaServerKey {
T::from(CudaRadixCiphertext::new(trimmed_ct_list, trimmed_ct_info))
}
pub(crate) fn generate_lookup_table<F>(&self, f: F) -> LookupTableOwned
pub fn generate_lookup_table<F>(&self, f: F) -> LookupTableOwned
where
F: Fn(u64) -> u64,
{
@@ -825,7 +825,7 @@ impl CudaServerKey {
///
/// - `streams` __must__ be synchronized to guarantee computation has finished, and inputs must
/// not be dropped until streams is synchronised
pub(crate) unsafe fn apply_lookup_table_async(
pub unsafe fn apply_lookup_table_async(
&self,
output: &mut CudaRadixCiphertext,
input: &CudaRadixCiphertext,
@@ -964,7 +964,7 @@ impl CudaServerKey {
///
/// - `stream` __must__ be synchronized to guarantee computation has finished, and inputs must
/// not be dropped until stream is synchronised
pub unsafe fn apply_many_lookup_table_async(
pub(crate) unsafe fn apply_many_lookup_table_async(
&self,
input: &CudaRadixCiphertext,
lut: &ManyLookupTableOwned,