Gets device of type specified from the cache. Creates one if it does not already exist.
Namespace: Cudafy.HostAssembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172
Syntax
C# |
---|
public static GPGPU GetDevice( eGPUType type, int deviceId ) |
Visual Basic |
---|
Public Shared Function GetDevice ( _ type As eGPUType, _ deviceId As Integer _ ) As GPGPU |
Visual C++ |
---|
public: static GPGPU^ GetDevice( eGPUType type, int deviceId ) |
Parameters
- type
- Type: Cudafy..::..eGPUType
The target type.
- deviceId
- Type: System..::..Int32
The device id.