Skip to content

Add cheddar_gpu bx/ax pair ops and tensor products - #3630

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1015811844
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1015811844

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Add cheddar_gpu bx/ax pair ops and tensor products

Adds 5 operations to the cheddar_gpu dialect:
add_2, sub_2, neg_2, tensor, and tensor_square.

The _2 ops are kernels that implement the operation in question on two polynomials simultaneously. As described in the Cheddar paper, this is more efficient on GPU because it allows the kernel to load the primes it needs for each limb only once to process more than one polynomial. This shows up a lot in CKKS because ciphertexts are pairs of polynomials. tensor is for cipherterxt-ciphertext multiplication (without relinearization), and tensor_square specializes when both mul operands are the same ciphertext.

@copybara-service
copybara-service Bot force-pushed the test_1015811844 branch 2 times, most recently from c359bf8 to f6e38d7 Compare November 11, 2026 19:31
Adds 5 operations to the cheddar_gpu dialect:
add_2, sub_2, neg_2, tensor, and tensor_square.

The `_2` ops are kernels that implement the operation in question on two polynomials simultaneously. As described in the Cheddar paper, this is more efficient on GPU because it allows the kernel to load the primes it needs for each limb only once to process more than one polynomial. This shows up a lot in CKKS because ciphertexts are pairs of polynomials. tensor is for cipherterxt-ciphertext multiplication (without relinearization), and tensor_square specializes when both mul operands are the same ciphertext.

PiperOrigin-RevId: 1015811844

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant