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

Limit compilation process #884

Open
igaray opened this issue Oct 25, 2024 · 0 comments
Open

Limit compilation process #884

igaray opened this issue Oct 25, 2024 · 0 comments
Labels

Comments

@igaray
Copy link
Collaborator

igaray commented Oct 25, 2024

Native should be configurable to stop the compilation process from sierra to MLIR by two parameters :

  • Size of the sierra file. Currently the casm and sierra bytecode size is limited to 81920 bytes. This value should be passed to the executor for the compilation process.
  • Memory usage. CASM is currently limited to 5120 MB. We should research if we can monitor memory usage.

In addition, we should research if we can also pass in a timeout value in milliseconds, and measure wall clock time during compilation.

These three failure modes should each have their own error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant