bridge.utils.cuda_graph#
Module Contents#
Functions#
Return configured per-layer CUDA graph module names. |
|
Set per-layer CUDA graph modules using the current MCore API when available. |
|
Clear per-layer CUDA graph modules using the active MCore API. |
|
Enable full-iteration CUDA graph capture using the current MCore API. |
|
Return whether a per-layer CUDA graph module is enabled. |
|
Return whether config enables full-iteration CUDA graph capture. |
|
Return whether Bridge should create a local MCore CudaGraphManager. |
API#
- bridge.utils.cuda_graph._as_list(value: Any) list[Any]#
- bridge.utils.cuda_graph._member_name(value: Any) str#
- bridge.utils.cuda_graph._member_name_list(value: Any) list[str]#
- bridge.utils.cuda_graph._member_names(value: Any) set[str]#
- bridge.utils.cuda_graph._supports_cuda_graph_modules(config: Any) bool#
- bridge.utils.cuda_graph._module_value(name: str)#
- bridge.utils.cuda_graph.cuda_graph_module_names(config: Any) list[str]#
Return configured per-layer CUDA graph module names.
- bridge.utils.cuda_graph.set_cuda_graph_modules(
- config: Any,
- modules: Any,
Set per-layer CUDA graph modules using the current MCore API when available.
- bridge.utils.cuda_graph.clear_cuda_graph_modules(config: Any) None#
Clear per-layer CUDA graph modules using the active MCore API.
- bridge.utils.cuda_graph.set_full_iteration_cuda_graph(config: Any) None#
Enable full-iteration CUDA graph capture using the current MCore API.
- bridge.utils.cuda_graph.has_cuda_graph_module(config: Any, module: Any) bool#
Return whether a per-layer CUDA graph module is enabled.
Supports both the current MCore
cuda_graph_modulesAPI and the deprecatedcuda_graph_scopevalues still present in older Bridge configs.
- bridge.utils.cuda_graph.is_full_iteration_cuda_graph(config: Any) bool#
Return whether config enables full-iteration CUDA graph capture.
- bridge.utils.cuda_graph.uses_local_cuda_graph_manager(config: Any) bool#
Return whether Bridge should create a local MCore CudaGraphManager.