Gets the device properties.
Namespace: Cudafy.HostAssembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172
Syntax
C# |
---|
public override GPGPUProperties GetDeviceProperties( bool useAdvanced ) |
Visual Basic |
---|
Public Overrides Function GetDeviceProperties ( _ useAdvanced As Boolean _ ) As GPGPUProperties |
Visual C++ |
---|
public: virtual GPGPUProperties^ GetDeviceProperties( bool useAdvanced ) override |
Parameters
- useAdvanced
- Type: System..::..Boolean
If true then also get properties via cudart.dll (e.g. MultiProcessorCount).
Return Value
Device properties instance.
Exceptions
Exception | Condition |
---|---|
Cudafy.Host..::..CudafyHostException | Failed to get properties. |
System..::..DllNotFoundException | Library named cudart.dll is needed for advanced properties and was not found. |