Skip to content

[cpu_runtime] Raise exception if library is not found.#129

Merged
rjnw merged 3 commits intomainfrom
rjnw/cpu_exception
Mar 27, 2026
Merged

[cpu_runtime] Raise exception if library is not found.#129
rjnw merged 3 commits intomainfrom
rjnw/cpu_exception

Conversation

@rjnw
Copy link
Copy Markdown
Contributor

@rjnw rjnw commented Mar 26, 2026

Currently if a kernel library is not found nexus fails silently.
This changes throws an exception in cpp runtime which gets translated to python ValueError by pybind.
Adding a test to verify, and updating the current test.py to catch up with library changes.

Currently if a kernel library is not found nexus fails silently.
This changes throws an exception in cpp runtime which gets translated to python ValueError by pybind.
Adding a test to verify, and updating the current test.py to catch up with library changes.
@rjnw rjnw requested a review from sjw36 March 26, 2026 17:03
@rjnw
Copy link
Copy Markdown
Contributor Author

rjnw commented Mar 26, 2026

I am trying to figure out how to error in python binding implementation as that would work across all plugins and not just cpu. Will update this with that soon.

@rjnw rjnw self-assigned this Mar 27, 2026
Copy link
Copy Markdown
Collaborator

@sjw36 sjw36 left a comment

Choose a reason for hiding this comment

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

Nice!

Nexus is built to not throw exceptions, just invalid objects. But python seems to prefer throwing exceptions.

@rjnw rjnw merged commit 8b8d924 into main Mar 27, 2026
11 checks passed
@rjnw rjnw deleted the rjnw/cpu_exception branch March 27, 2026 18:56
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