xxxserxxx/gotop-nvidia

Units of GPU Memory are mismatched

Closed this issue · 0 comments

nvidia-smi returns used and total GPU memory in MiB, however nvidia.go treats these values as bytes. Therefore, gotop displays values that are several orders of magnitudes too low (in my case: nvidia-smi returns 8116 MiB of total memory, gotop displays 8KB instead of 8GB).

This could be fixed by multiplying the parsed values by 1048576 to convert them to bytes first.