Skip to content

Commit

Permalink
chore(gpu): plug in signed gpu tests in the hl api
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Feb 24, 2025
1 parent 1588334 commit 72c86fd
Show file tree
Hide file tree
Showing 9 changed files with 771 additions and 694 deletions.
10 changes: 7 additions & 3 deletions tfhe/src/high_level_api/integers/signed/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ where
Self::new(ciphertext, cpu_key.tag.clone())
}
#[cfg(feature = "gpu")]
InternalServerKey::Cuda(_) => {
panic!("Cuda devices does not support abs yet")
}
InternalServerKey::Cuda(cuda_key) => with_thread_local_cuda_streams(|streams| {
let result = cuda_key
.key
.key
.abs(&*self.ciphertext.on_gpu(streams), streams);
Self::new(result, cuda_key.tag.clone())
}),
})
}

Expand Down
Loading

0 comments on commit 72c86fd

Please sign in to comment.