MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / IsCudaGraphSupported

Method IsCudaGraphSupported

oneflow/core/kernel/user_kernel.cpp:739–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739bool UserKernel::IsCudaGraphSupported() const {
740#ifdef WITH_CUDA_GRAPHS
741 return cuda_graph_exec_.get() != nullptr;
742#else
743 return false;
744#endif // WITH_CUDA_GRAPHS
745}
746
747bool UserKernel::IsReadyForCudaGraphCapture(KernelContext* ctx) const {
748 const auto* cuda_graph_support = dynamic_cast<const user_op::CudaGraphSupport*>(kernel_.get());

Callers 2

IsCUDAGraphSupportedFunction · 0.45
VirtualKernelInitMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected