You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): import SUPPORTED_TARGETS directly instead of parsing pyx
Drop the elaborate tokenize+AST walk that the cross-check test was
using to extract `SUPPORTED_TARGETS` from the pyx source. Drop the
`cdef` qualifier on the dict in `_program.pyx` (it gated Python
visibility -- removing it gives the test a direct import) and rewrite
the test as a plain comparison: import both views, check that NVRTC /
NVVM line up with their code-type counterparts and that the two linker
backends (nvJitLink, driver) match the ptx entry.
Performance impact of dropping `cdef` is one Python-level dict
`.get` per `Program.compile` call, which is negligible against the
NVRTC/linker work that follows.
0 commit comments