-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gemm-based packing ks #1859
Gemm-based packing ks #1859
Conversation
backends/tfhe-cuda-backend/cuda/src/crypto/fast_packing_keyswitch.cuh
Outdated
Show resolved
Hide resolved
a000de7
to
8859f79
Compare
#[test] | ||
fn test_gpu_ciphertext_compression_fast_path() { | ||
// these parameters are insecure | ||
const PARAM_CUSTOM_FAST_PATH: ClassicPBSParameters = ClassicPBSParameters { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IceTDrinker , @agnesLeroy here I added dummy parameters that use the fast path but have no correctness guarantee - thus I removed the and
operation in the test so no PBS is done -> just encrypt/compress/extract/decrypt.
I hope this is ok, let me know.
const PARAM_CUSTOM_FAST_PATH: ClassicPBSParameters = ClassicPBSParameters { | ||
lwe_dimension: LweDimension(2048), | ||
glwe_dimension: GlweDimension(1), | ||
polynomial_size: PolynomialSize(2048), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I add other poly sizes in the test ?
hey I've been very busy with noise verifications, I should have some time to review hopefully in the next few days, but I have a ZK review that will take priority |
Closed because I generalized this approach in #1875 |
Achieves ~4x speedup for packing keyswitch