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

Add error checking for failed snax-gen make files #41

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

rgantonio
Copy link

This PR adds additional error checking if snax gen fails it terminates the occamygen as early as possible.

The problem arises because it calls a subprocess make -C but even when the make fails, it does not propagate an error toward the occamygen.

This PR adds a fix to it.

@rgantonio rgantonio requested a review from IveanEx September 17, 2024 12:40
@rgantonio rgantonio self-assigned this Sep 17, 2024
@rgantonio
Copy link
Author

@IveanEx do what you told me to do. Try this by removing one config in any cluster config. Then you will see that it terminates early. Unlike without it, the occamygen still proceeds.

@rgantonio
Copy link
Author

LOl talk about irony, it really works no because the header files cannot be generated

@rgantonio
Copy link
Author

This PR needs SNAX cluster fix KULeuven-MICAS/snax_cluster#333

@rgantonio
Copy link
Author

This should work now!

@rgantonio
Copy link
Author

@IveanEx approve?? hehe

Copy link

@IveanEx IveanEx left a comment

Choose a reason for hiding this comment

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

Thanks!!!

@rgantonio rgantonio merged commit 81b5601 into chip_antwerp Sep 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants