Skip to content

feat: disallow SP1 to be ran in debug #2228

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

Merged
merged 4 commits into from
Apr 10, 2025

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented Apr 8, 2025

Motivation

Teams that run benchmarks might forget the release flag and see degraded performance. To avoid that, we want to disallow provers to be ran in debug in CPU and Cuda mode.

Solution

Panics when the CPU and Cuda provers are instantiated if sp1-sdk is build in debug. It's not an issue with the network prover as progams are executed on a remote cluster.

@leruaa leruaa force-pushed the aurelien/check-sp1-sdk-is-built-in-release branch from 581d6cf to 67b88fc Compare April 8, 2025 19:59
Copy link
Member

@ratankaliani ratankaliani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leruaa leruaa merged commit 54ccb5c into dev Apr 10, 2025
12 checks passed
@leruaa leruaa deleted the aurelien/check-sp1-sdk-is-built-in-release branch April 10, 2025 09:27
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.

2 participants