Enum CudaGraphCaptureMode
- Namespace
- DotCompute.Backends.CUDA.Types
- Assembly
- DotCompute.Backends.CUDA.dll
Defines the capture modes for CUDA graph recording. Different modes provide varying levels of thread safety and flexibility.
public enum CudaGraphCaptureMode
Fields
Global = 0Global capture mode. All CUDA operations in the process are captured into the graph. Not thread-safe, suitable for single-threaded applications.
Relaxed = 2Relaxed capture mode. Provides more flexibility in graph construction with automatic synchronization. Allows capturing of operations that would normally be invalid in strict modes. Best for complex graph patterns with conditional execution.
ThreadLocal = 1Thread-local capture mode. Only CUDA operations from the capturing thread are included in the graph. Thread-safe, suitable for multi-threaded applications.