Struct CudaGraphKernelNodeAttributeValue
Describes a CUDA graph kernel node attribute using a copied scalar descriptor. 使用复制出的标量 descriptor 描述 CUDA graph kernel node attribute。
public readonly struct CudaGraphKernelNodeAttributeValue
- Inherited Members
Properties
Attribute
Gets the attribute represented by this descriptor. 获取该 descriptor 表示的 attribute。
public CudaGraphKernelNodeAttribute Attribute { get; }
Property Value
ClusterSchedulingPolicyPreference
Gets the cluster scheduling policy preference. 获取 cluster scheduling policy preference。
public CudaClusterSchedulingPolicyPreference ClusterSchedulingPolicyPreference { get; }
Property Value
CooperativeEnabled
Gets whether the cooperative attribute is enabled. 获取 cooperative attribute 是否启用。
public bool CooperativeEnabled { get; }
Property Value
IntValue
Gets the scalar integer value for cooperative, priority, or policy attributes. 获取 cooperative、priority 或 policy attribute 的标量整数值。
public int IntValue { get; }
Property Value
X
Gets the X component for cluster dimension attributes. 获取 cluster dimension attribute 的 X 分量。
public uint X { get; }
Property Value
Y
Gets the Y component for cluster dimension attributes. 获取 cluster dimension attribute 的 Y 分量。
public uint Y { get; }
Property Value
Z
Gets the Z component for cluster dimension attributes. 获取 cluster dimension attribute 的 Z 分量。
public uint Z { get; }
Property Value
Methods
ClusterDimension(uint, uint, uint)
Creates a cluster dimension kernel node attribute descriptor. 创建 cluster dimension kernel node attribute descriptor。
public static CudaGraphKernelNodeAttributeValue ClusterDimension(uint x, uint y, uint z)
Parameters
xuintThe cluster X dimension. Cluster X 维度。
yuintThe cluster Y dimension. Cluster Y 维度。
zuintThe cluster Z dimension. Cluster Z 维度。
Returns
ClusterSchedulingPolicy(CudaClusterSchedulingPolicyPreference)
Creates a cluster scheduling policy preference descriptor. 创建 cluster scheduling policy preference descriptor。
public static CudaGraphKernelNodeAttributeValue ClusterSchedulingPolicy(CudaClusterSchedulingPolicyPreference policy)
Parameters
policyCudaClusterSchedulingPolicyPreferenceThe policy preference. 策略偏好。
Returns
Cooperative(bool)
Creates a cooperative kernel node attribute descriptor. 创建 cooperative kernel node attribute descriptor。
public static CudaGraphKernelNodeAttributeValue Cooperative(bool enabled)
Parameters
enabledboolWhether cooperative launch is enabled. 是否启用 cooperative launch。
Returns
Priority(int)
Creates a priority kernel node attribute descriptor. 创建 priority kernel node attribute descriptor。
public static CudaGraphKernelNodeAttributeValue Priority(int priority)
Parameters
priorityintThe kernel execution priority. Kernel 执行优先级。
Returns
ToString()
Formats the copied kernel node attribute descriptor for diagnostics. 将复制出的 kernel node attribute descriptor 格式化为诊断字符串。
public override string ToString()