Class CudaDeviceInfo
The Cuda device information
public class CudaDeviceInfo : UnmanagedObject, IDisposable
- Inheritance
-
CudaDeviceInfo
- Implements
- Inherited Members
Constructors
CudaDeviceInfo()
Query the information of the gpu device that is currently in use.
public CudaDeviceInfo()
CudaDeviceInfo(int)
Query the information of the cuda device with the specific id.
public CudaDeviceInfo(int deviceId)
Parameters
deviceId
intThe device id
Properties
CudaComputeCapability
The compute capability
public Version CudaComputeCapability { get; }
Property Value
FreeMemory
Get the amount of free memory at the moment
public ulong FreeMemory { get; }
Property Value
ID
The id of the device
public int ID { get; }
Property Value
IsCompatible
Checks whether the Cuda module can be run on the given device
public bool IsCompatible { get; }
Property Value
MultiProcessorCount
The number of single multi processors
public int MultiProcessorCount { get; }
Property Value
Name
The name of the device
public string Name { get; }
Property Value
TotalMemory
Get the amount of total memory
public ulong TotalMemory { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged resource related to the GpuDevice
protected override void DisposeObject()
Supports(GpuFeature)
Indicates if the device has the specific feature
public bool Supports(CudaDeviceInfo.GpuFeature feature)
Parameters
feature
CudaDeviceInfo.GpuFeatureThe device feature
Returns
- bool
True if the feature is supported