Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/foundry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
resume_allocation_region,
set_current_alloc_offset,
)

from .ops import * # isort: skip
from .graph import (
CUDAGraph,
graph,
save_graph_manifest,
)
from .ops import *

# Re-exports. Listed here so ruff's --fix doesn't strip them as unused.
# (We also configure per-file-ignores for F401 in pyproject.toml as a backstop.)
Expand Down
7 changes: 7 additions & 0 deletions tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ def test_re_exports_present():
)


def test_cudagraph_reexport_uses_python_wrapper():
foundry = importlib.import_module("foundry")
graph_module = importlib.import_module("foundry.graph")

assert foundry.CUDAGraph is graph_module.CUDAGraph


def test_vllm_integration_public_api():
mod = importlib.import_module("foundry.integration.vllm")
for name in ("install_hooks", "CUDAGraphExtensionMode", "get_graph_extension_mode"):
Expand Down