Lightning-AI/lightning-thunder

Error on reentrant jit invocation

Open

#1.222 geöffnet am 30. Sept. 2024

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (114 Forks)github user discovery
enhancementgood first issueux

Repository-Metriken

Stars
 (1.460 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide