Lightning-AI/lightning-thunder

Error on reentrant jit invocation

Open

#1 222 ouverte le 30 sept. 2024

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)Python (114 forks)github user discovery
enhancementgood first issueux

Métriques du dépôt

Stars
 (1 460 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur