Class CudaDeviceSelectionRequirements
Minimum CUDA device properties used by cudaChooseDevice.
cudaChooseDevice 使用的最小 CUDA 设备约束。
public sealed class CudaDeviceSelectionRequirements
- Inheritance
-
CudaDeviceSelectionRequirements
- Inherited Members
Remarks
Unspecified numeric members should remain zero. CUDA treats the structure as a set of desired minimums. 未指定的数值成员应保持为零;CUDA 会把该结构解释为期望的最小能力集合。
Properties
Major
Gets or sets the minimum CUDA compute capability major version. 获取或设置最低 CUDA compute capability major 版本。
public int Major { get; set; }
Property Value
MaxThreadsPerBlock
Gets or sets the desired minimum threads per block. 获取或设置期望的最低 block 线程数。
public int MaxThreadsPerBlock { get; set; }
Property Value
Minor
Gets or sets the minimum CUDA compute capability minor version. 获取或设置最低 CUDA compute capability minor 版本。
public int Minor { get; set; }
Property Value
MultiProcessorCount
Gets or sets the desired minimum multiprocessor count. 获取或设置期望的最低 multiprocessor 数量。
public int MultiProcessorCount { get; set; }
Property Value
RequireHostMemoryMapping
Gets or sets whether host memory mapping support is required. 获取或设置是否要求支持 host memory mapping。
public bool RequireHostMemoryMapping { get; set; }
Property Value
RequireIntegratedGpu
Gets or sets whether an integrated GPU is required. 获取或设置是否要求 integrated GPU。
public bool RequireIntegratedGpu { get; set; }
Property Value
TotalGlobalMemory
Gets or sets the desired minimum total global memory in bytes. 获取或设置期望的最低 global memory 字节数。
public ulong TotalGlobalMemory { get; set; }
Property Value
WarpSize
Gets or sets the desired warp size. Leave zero when not constrained. 获取或设置期望 warp size;不约束时保持为零。
public int WarpSize { get; set; }