Skip to content
Merged
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
6 changes: 6 additions & 0 deletions transformer_engine/pytorch/ep.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
__all__ = [
"EpBuffer",
"ep_bootstrap",
"is_ep_bootstrapped",
"ep_finalize",
"ep_dispatch",
"ep_combine",
Expand Down Expand Up @@ -169,6 +170,11 @@ def ep_bootstrap(
_ATEXIT_REGISTERED = True


def is_ep_bootstrapped() -> bool:
"""Whether EP has been initialized in this process."""
return _BOOTSTRAPPED


def ep_finalize() -> None:
"""Optional explicit EP teardown; idempotent.

Expand Down
Loading