Skip to content

Nvidia: deactivate Edwards25519 on Nvidia backend for now#559

Merged
mratsim merged 1 commit intomasterfrom
nvidia-deact-edwards25519
Aug 7, 2025
Merged

Nvidia: deactivate Edwards25519 on Nvidia backend for now#559
mratsim merged 1 commit intomasterfrom
nvidia-deact-edwards25519

Conversation

@mratsim
Copy link
Owner

@mratsim mratsim commented Aug 7, 2025

Following #445, there are 2 representations used on CPU for field elements, either the canonical representation if a field has access to a fast reduction like for Mersenne or Pseudo-Mersenne/Crandall or Solinas primes or the Montgomery representation.

The Nvidia backend only supports Montgomery representation at the moment.

Inputs are memcpied into the GPU for computation assuming CPU and GPU representations are matching but they aren't.

Workarounding by checking if the inputs and output should be memcpied or not seems to be non-trivial work so for now we don't support Edwards25519 on Nvidia GPU while waiting got the Crandall acceleration introduced in #445, namely this file https://github.com/mratsim/constantine/blob/v0.2.0/constantine/math/arithmetic/limbs_crandall.nim to be ported to GPU.

@mratsim mratsim merged commit 08dcf21 into master Aug 7, 2025
16 checks passed
@mratsim mratsim deleted the nvidia-deact-edwards25519 branch August 7, 2025 09:42
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

Comments