Class CudaKernelLaunch
Owns one asynchronous named-kernel launch and retains every participating CUDA owner until disposal. 拥有一次异步 named-kernel launch,并在释放前租用所有参与的 CUDA owner。
public sealed class CudaKernelLaunch : IDisposable
- Inheritance
-
CudaKernelLaunch
- Implements
- Inherited Members
Properties
ArgumentCount
Gets the number of packed kernel arguments. 获取打包后的 kernel 参数数量。
public int ArgumentCount { get; }
Property Value
Configuration
Gets the copied launch configuration. 获取复制后的 launch 配置。
public CudaKernelLaunchConfiguration Configuration { get; }
Property Value
IsCompleted
Gets whether the completion event has finished without exposing the native event. 获取 completion event 是否完成,不暴露 native event。
public bool IsCompleted { get; }
Property Value
KernelName
Gets the copied kernel name. 获取复制后的 kernel 名称。
public string KernelName { get; }
Property Value
Methods
Dispose()
Synchronizes pending work, destroys the completion owner, and releases all SafeHandle leases. 同步未完成工作、销毁 completion owner,并释放全部 SafeHandle 租约。
public void Dispose()
~CudaKernelLaunch()
Releases the completion owner and its SafeHandle leases. 释放 completion owner 及其 SafeHandle 租约。
protected ~CudaKernelLaunch()
Synchronize()
Waits for kernel completion and surfaces asynchronous CUDA errors. 等待 kernel 完成并报告异步 CUDA 错误。
public void Synchronize()