Error on reentrant jit invocation
...to provide a better error message. Most likely the easiest is to add something like
if get_jit_ctx() is not None:
raise NotImplementedError("Re-entrant jitting is not supported")
to the top of thunder.jit.thunder_general_jit and then write a test.
First step in #1126
cc @carmocca @borda
Hello @t-vi - We were wondering if we could pick this issue. Just wanted to know if there are any details that might help us to get started.
Hello @t-vi - I wanted to reach out to see if this issue can be picked by us to resolve.
Sure thing.
Thanks. @UltraArceus3 @Dev-10sky and I will start working on the change.
So we will add the Error Message on this line - https://github.com/Lightning-AI/lightning-thunder/blob/main/thunder/core/jit_ext.py#L1664
Which test file should we refer to test this change? I'm trying to understand how the test case would look like.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thanks. @UltraArceus3 @Dev-10sky and I will start working on the change.
@Nachiket18 are you still considering working on this issue?
I am interested in this issue if it is open for contribution!