GetComputeCapability() private method

private GetComputeCapability ( int deviceId, int &major, int &minor ) : void
deviceId int
major int
minor int
return void
Esempio n. 1
0
 /// <summary>
 /// Query the information of the gpu device with the specific id.
 /// </summary>
 /// <param name="deviceId">The device id</param>
 public GpuDevice(int deviceId)
 {
     ID   = deviceId;
     Name = GpuInvoke.GetDeviceName(deviceId);
     GpuInvoke.GetComputeCapability(deviceId, ref CudaComputeCapability.Major, ref CudaComputeCapability.Minor);
     NumberOfSMs            = GpuInvoke.GetNumberOfSMs(deviceId);
     HasNativeDoubleSupport = GpuInvoke.HasNativeDoubleSupport(deviceId);
     HasAtomicSupport       = GpuInvoke.HasAtomicsSupport(deviceId);
 }