Creates a new GPGPU and adds to cache. If GPGPU already exists then it is first destroyed and removed from cache.
Namespace: Cudafy.HostAssembly: Cudafy.Host (in Cudafy.Host.dll) Version: 1.0.4106.20172
Syntax
C# |
---|
public static GPGPU CreateDevice( eGPUType type, int deviceId ) |
Visual Basic |
---|
Public Shared Function CreateDevice ( _ type As eGPUType, _ deviceId As Integer _ ) As GPGPU |
Visual C++ |
---|
public: static GPGPU^ CreateDevice( eGPUType type, int deviceId ) |
Parameters
- type
- Type: Cudafy..::..eGPUType
The target type.
- deviceId
- Type: System..::..Int32
The device id.