Class Device
This class contains ocl device information
public class Device : UnmanagedObject, IDisposable
- Inheritance
-
Device
- Implements
- Inherited Members
Constructors
Device()
Create a empty OclDevice object
public Device()
Properties
AddressBits
The AddressBits
public int AddressBits { get; }
Property Value
Available
Indicates if the device is available
public bool Available { get; }
Property Value
CompilerAvailable
Indicates if the compiler is available
public bool CompilerAvailable { get; }
Property Value
Default
Get the default OclDevice. Do not dispose this device.
public static Device Default { get; }
Property Value
DeviceVersionMajor
The device major version number
public int DeviceVersionMajor { get; }
Property Value
DeviceVersionMinor
The device minor version number
public int DeviceVersionMinor { get; }
Property Value
DoubleFPConfig
The device double floating point configuration
public FpConfig DoubleFPConfig { get; }
Property Value
DriverVersion
The device driver version
public string DriverVersion { get; }
Property Value
Extensions
The device extensions
public string Extensions { get; }
Property Value
GlobalMemSize
The global memory size
public nint GlobalMemSize { get; }
Property Value
HalfFPConfig
The device half floating point configuration
public FpConfig HalfFPConfig { get; }
Property Value
HostUnifiedMemory
True if the device use unified memory
public bool HostUnifiedMemory { get; }
Property Value
Image2DMaxHeight
The image2d max height
public int Image2DMaxHeight { get; }
Property Value
Image2DMaxWidth
The image 2d max width
public int Image2DMaxWidth { get; }
Property Value
IsAMD
Indicates if this is an AMD device
public bool IsAMD { get; }
Property Value
IsIntel
Indicates if this is an Intel device
public bool IsIntel { get; }
Property Value
IsNVidia
Indicates if this is an NVidia device
public bool IsNVidia { get; }
Property Value
LinkerAvailable
Indicates if the linker is available
public bool LinkerAvailable { get; }
Property Value
LocalMemSize
The local memory size
public int LocalMemSize { get; }
Property Value
MaxComputeUnits
The max compute unit
public int MaxComputeUnits { get; }
Property Value
MaxMemAllocSize
The maximum memory allocation size
public int MaxMemAllocSize { get; }
Property Value
MaxWorkGroupSize
The maximum work group size
public int MaxWorkGroupSize { get; }
Property Value
Name
The device name
public string Name { get; }
Property Value
NativeDevicePointer
Get the native device pointer
public nint NativeDevicePointer { get; }
Property Value
OpenCLCVersion
The device OpenCL C version
public string OpenCLCVersion { get; }
Property Value
OpenCLVersion
The device OpenCL version
public string OpenCLVersion { get; }
Property Value
SingleFPConfig
The device single floating point configuration
public FpConfig SingleFPConfig { get; }
Property Value
Type
The ocl device type
public DeviceType Type { get; }
Property Value
VendorName
The device vendor name
public string VendorName { get; }
Property Value
Version
The device version
public string Version { get; }
Property Value
Methods
DisposeObject()
Release all the unmanaged memory associated with this OclDevice
protected override void DisposeObject()
Set(nint)
Set the native device pointer
public void Set(nint nativeDevicePointer)
Parameters
nativeDevicePointer
nintThe native device pointer
ToString()
Get the string representation of this oclDevice
public override string ToString()
Returns
- string
A string representation of this oclDevice