Class ComputeExecutionExtensions
- Namespace
- DotCompute.Core.Extensions
- Assembly
- DotCompute.Core.dll
Extension methods for IComputeExecution to provide additional functionality.
public static class ComputeExecutionExtensions
- Inheritance
-
ComputeExecutionExtensions
- Inherited Members
Methods
BeginCaptureAsync(IComputeExecution)
Begins capturing operations in this execution context for graph construction. This is primarily used for CUDA graph functionality.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "Dynamic method lookup for stream-specific BeginCapture method is intentional")]
public static ValueTask BeginCaptureAsync(this IComputeExecution stream)
Parameters
streamIComputeExecutionThe compute execution context.
Returns
- ValueTask
A task representing the begin capture operation.
EndCaptureAsync(IComputeExecution)
Ends capturing operations in this execution context and returns the captured graph. This is primarily used for CUDA graph functionality.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "Dynamic method lookup for stream-specific EndCapture method is intentional")]
public static ValueTask<object?> EndCaptureAsync(this IComputeExecution stream)
Parameters
streamIComputeExecutionThe compute execution context.