torch.cuda.graph_annotations.is_available#
- torch.cuda.graph_annotations.is_available() bool[source]#
Return whether CUDA graph annotation recording is supported.
Requires a CUDA device, the
cuda-bindingspackage, and a driver that supportscudaGraphNodeGetToolsId(CUDA >= 13.1 or an equivalent cuda-compat package). When this returnsFalse,mark_kernels()is a silent no-op and no annotations are recorded.The first call may probe the CUDA driver; the result is cached.
- Return type: