I am trying to get total GPU memory value. I tried with WMI but it returns not higher value than 4gb.
After reading few articles I found out Cudafy.
public static ulong GetGpuMemory()
{
GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId);
var c = gpu.GetDeviceProperties(true);
var p = c.TotalMemory;
return p;
}
For some reason it is returning max ulong value.
Any ideas? Do you know any other way to get correct GPU memory value from both - NVIDIA and AMD GPUs? What about taking hex value from registry and then converting it? I tried to write some code but without success. Thanks for any help in advance