Lightning-AI/lightning-thunder

Error on reentrant jit invocation

Open

#1222 aperta il 30 set 2024

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)Python (114 fork)github user discovery
enhancementgood first issueux

Metriche repository

Star
 (1460 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

...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

Guida contributor