GetDeviceName() public static method

Get the name of the device associated with the specific ID
public static GetDeviceName ( int deviceId ) : String
deviceId int The id of the cuda device
return String
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);
 }