-
Notifications
You must be signed in to change notification settings - Fork 36
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
CUDA acceleration always enabled regardless of cuda
feature enabled
#259
Comments
- Modified grumpkin-msm dependency to be optional for x86_64/aarch64 targets and added it to CUDA dependencies in `Cargo.toml`. - Inserted `cuda` feature guard for `vartime_multiscalar_mul` function in `traits.rs` file to only allow execution when `cuda` feature and specific architecture are enabled. - Adjusted targeting condition for grumpkin_msm algorithm use in `pasta.rs`. The algorithm is now dependent on the 'cuda' feature and x86_64 or aarch64 architecture. - Updated conditional compilation in `bn256_grumpkin.rs` to integrate CUDA feature for both bn256 and grumpkin. Fixes https://github.com/lurk-lab/lurk-rs/issues/1030
My tests on CPU comparing dev at 2066ae4 with #257. => grumpkin-msm's CPU msm is better (for now) than halo2curves |
* simplify Group trait * fix clippy * further simplifications * fix Copy
Conclusion: we should make grumpkin-msm: See PR at lurk-lab/grumpkin-msm#9 |
* Simplify Group trait (lurk-lang#259) * simplify Group trait * fix clippy * further simplifications * fix Copy * Cut duplicate code (lurk-lang#261) * cut duplicate code * bound --> bind for clarity * expose asm feature * test: check test_pp_digest with asm feature in CI * expose size of the base field (lurk-lang#262) * fix: add mention of halo2curves issue explaining the problem --------- Co-authored-by: Srinath Setty <[email protected]>
There have been multiple reports of consistent GPU utilization shown with
nvtop
on Nvidia machines, regardless of if thecuda
/opencl
features are enabled. However, there should be no CUDA usage if the feature isn't enabled.According to @winston-h-zhang this may be due to the following issue in https://github.com/lurk-lab/grumpkin-msm and https://github.com/supranational/pasta-msm:
The text was updated successfully, but these errors were encountered: