private HasAtomicsSupport ( int device ) : bool | ||
device | int | |
return | bool |
/// <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); }