Skip to content

Commit 5d75321

Browse files
eqypytorchmergebot
authored andcommitted
[CUDA][CUDA Graphs] Fix debug mode warning message (pytorch#145996)
The real method is `enable_debug_mode()`, `_cuda_enable_graphs_debug_mode` does not exist. Pull Request resolved: pytorch#145996 Approved by: https://github.com/ptrblck, https://github.com/eellison
1 parent 002accf commit 5d75321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/cuda/CUDAGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void CUDAGraph::debug_dump(const std::string& debug_path) {
257257
has_graph_ = false;
258258
}
259259
} else {
260-
TORCH_WARN("CUDA Graphs debug not enabled, set with torch._C._cuda_enable_graphs_debug_mode");
260+
TORCH_WARN("CUDA Graphs debug not enabled, set with [graph].enable_debug_mode()");
261261
}
262262
#else
263263
TORCH_CHECK(false, "CUDA graphs may only be used in Pytorch built with CUDA >= 11.3 or ROCM >= 5.6");

0 commit comments

Comments
 (0)