/// <inheritdoc/> protected override ProfilingMarker AddProfilingMarkerInternal() { var profilingMarker = new CudaProfilingMarker(); CudaException.ThrowIfFailed( CurrentAPI.RecordEvent(profilingMarker.EventPtr, StreamPtr)); return(profilingMarker); }
/// <inheritdoc/> protected override ProfilingMarker AddProfilingMarkerInternal() { using var binding = Accelerator.BindScoped(); var profilingMarker = new CudaProfilingMarker(Accelerator); CudaException.ThrowIfFailed( CurrentAPI.RecordEvent(profilingMarker.EventPtr, StreamPtr)); return(profilingMarker); }