Skip to content

Reset simulator on trap#3989

Open
atgeller wants to merge 2 commits intoNVIDIA:mainfrom
atgeller:py_reset_on_trap
Open

Reset simulator on trap#3989
atgeller wants to merge 2 commits intoNVIDIA:mainfrom
atgeller:py_reset_on_trap

Conversation

@atgeller
Copy link
Collaborator

Description

I noticed an issue in Python where, if a kernel traps, it causes a runtime error which can be nicely caught, handled, and recovered from. However, the simulator state is not cleared, so any subsequent use of the simulator results in incorrect results. I was unable to reproduce this behavior in C++.

This PR addresses this issue by explicitly resetting the simulator on a trap, and adds a test that simulation after a trap no longer leads to incorrect results.

Signed-off-by: Adam Geller <adgeller@nvidia.com>
@atgeller atgeller requested a review from schweitzpgi February 17, 2026 23:36
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.

1 participant

Comments