Table of Contents

Struct CudaGraphKernelNodeAttributeValue

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

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

CudaGraphKernelNodeAttribute

ClusterSchedulingPolicyPreference

Gets the cluster scheduling policy preference. 获取 cluster scheduling policy preference。

public CudaClusterSchedulingPolicyPreference ClusterSchedulingPolicyPreference { get; }

Property Value

CudaClusterSchedulingPolicyPreference

CooperativeEnabled

Gets whether the cooperative attribute is enabled. 获取 cooperative attribute 是否启用。

public bool CooperativeEnabled { get; }

Property Value

bool

IntValue

Gets the scalar integer value for cooperative, priority, or policy attributes. 获取 cooperative、priority 或 policy attribute 的标量整数值。

public int IntValue { get; }

Property Value

int

X

Gets the X component for cluster dimension attributes. 获取 cluster dimension attribute 的 X 分量。

public uint X { get; }

Property Value

uint

Y

Gets the Y component for cluster dimension attributes. 获取 cluster dimension attribute 的 Y 分量。

public uint Y { get; }

Property Value

uint

Z

Gets the Z component for cluster dimension attributes. 获取 cluster dimension attribute 的 Z 分量。

public uint Z { get; }

Property Value

uint

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

x uint

The cluster X dimension. Cluster X 维度。

y uint

The cluster Y dimension. Cluster Y 维度。

z uint

The cluster Z dimension. Cluster Z 维度。

Returns

CudaGraphKernelNodeAttributeValue

ClusterSchedulingPolicy(CudaClusterSchedulingPolicyPreference)

Creates a cluster scheduling policy preference descriptor. 创建 cluster scheduling policy preference descriptor。

public static CudaGraphKernelNodeAttributeValue ClusterSchedulingPolicy(CudaClusterSchedulingPolicyPreference policy)

Parameters

policy CudaClusterSchedulingPolicyPreference

The policy preference. 策略偏好。

Returns

CudaGraphKernelNodeAttributeValue

Cooperative(bool)

Creates a cooperative kernel node attribute descriptor. 创建 cooperative kernel node attribute descriptor。

public static CudaGraphKernelNodeAttributeValue Cooperative(bool enabled)

Parameters

enabled bool

Whether cooperative launch is enabled. 是否启用 cooperative launch。

Returns

CudaGraphKernelNodeAttributeValue

Priority(int)

Creates a priority kernel node attribute descriptor. 创建 priority kernel node attribute descriptor。

public static CudaGraphKernelNodeAttributeValue Priority(int priority)

Parameters

priority int

The kernel execution priority. Kernel 执行优先级。

Returns

CudaGraphKernelNodeAttributeValue

ToString()

Formats the copied kernel node attribute descriptor for diagnostics. 将复制出的 kernel node attribute descriptor 格式化为诊断字符串。

public override string ToString()

Returns

string