Skip to content
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

feat(gpu): optimize packing keyswitch on gpu #1908

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrei-stoian-zama
Copy link
Contributor

@andrei-stoian-zama andrei-stoian-zama commented Dec 30, 2024

GPU optimization for packing keyswitch for any level count using GEMM.

Bench using make bench_integer_compression_gpu on GTX 4060 mobile

Bench timing ms latency difference w.r.t previous impl
cuda::packing_compression::pack_u2 1.6173 -35.22%
cuda::packing_compression::pack_u8 1.6211 -31.76%
cuda::packing_compression::pack_u16 1.6316 -32.55%
cuda::packing_compression::pack_u32 1.6345 -38.88%
cuda::packing_compression::pack_u64 1.648 -70.32%
cuda::packing_compression::pack_u128 1.7274 -81.30%
cuda::packing_compression::pack_u256 3.3431 -81.69%
cuda::packing_compression::pack_u512 5.9654 -84.47%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant