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

Check if output directory is valid and writable before starting SLOTHY #63

Open
2 tasks
hanno-becker opened this issue Jul 9, 2024 · 0 comments
Open
2 tasks
Labels
enhancement New feature or request

Comments

@hanno-becker
Copy link
Collaborator

hanno-becker commented Jul 9, 2024

When passing an invalid output directory (e.g. one which doesn't exist, or which can't be written to), the user will only find out when the SLOTHY optimization completes, which for complicated examples can take hours. When this happens, the time and cost of optimization is currently wasted, because SLOTHY fails without having stored the result anywhere. Additionally, it leaves behind a frustrated user.

  • Check if the output directory exists and is writable before starting SLOTHY optimization
  • Optional: Catch any error while storing the optimized code, and dump it to a temporary file or the std output in this case.
@hanno-becker hanno-becker added the enhancement New feature or request label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant