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

Nvidia GPU: field substraction and multiplication #348

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jan 22, 2024

This PR adds:

  • field substraction
  • field multiplication for curve with an spare bit

This ups the minimum requirement to Cuda 11.5.1 to ensure 32-bit fused-multiply-add "hi" works properly: https://forums.developer.nvidia.com/t/wrong-result-returned-by-madc-hi-u64-ptx-instruction-for-specific-operands/196094

Also, using 64-bit arithmetic on GPU will give wrong results due to: https://forums.developer.nvidia.com/t/incorrect-result-of-ptx-code/221067

@mratsim mratsim force-pushed the nvidia-fp branch 2 times, most recently from 6ed6ef2 to a2ea8bb Compare January 23, 2024 08:48
@mratsim mratsim merged commit 58d8d2c into master Jan 23, 2024
32 checks passed
@mratsim mratsim deleted the nvidia-fp branch January 23, 2024 18:24
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