一种方法是使用cudafy.NET这个库 GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId); var c = gpu.GetDeviceProperties(true); var p = c.TotalMemory; Console.WriteLine(p); 源码:GitHub - lepoco/CUDAfy.NET