public CudaDevice(int index) { CudaDriver.Ensure(); Index = index; Handle = nvcuda.cuDeviceGet(index); Name = nvcuda.cuDeviceGetName(this); PciBusId = nvcuda.cuDeviceGetAttribute(CUdevice_attribute.PciBusId, this); PciDeviceId = nvcuda.cuDeviceGetAttribute(CUdevice_attribute.PciDeviceId, this); Simd = new SimdSpec(this); Clock = new ClockSpec(this); Memory = new MemorySpec(this); Caps = new DeviceCaps(this); }