public string GetDeviceName(CUdevice dev) { byte[] name = new byte[0x100]; this.LastError = CUDADriver.cuDeviceGetName(name, name.Length, dev); return(Encoding.ASCII.GetString(name)); }