| 737 | } |
| 738 | |
| 739 | bool 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 | |
| 747 | bool UserKernel::IsReadyForCudaGraphCapture(KernelContext* ctx) const { |
| 748 | const auto* cuda_graph_support = dynamic_cast<const user_op::CudaGraphSupport*>(kernel_.get()); |
no test coverage detected