{"action":"opened","issue":{"url":"https://api.github.com/repos/anderskm/gputil/issues/6","repository_url":"https://api.github.com/repos/anderskm/gputil","labels_url":"https://api.github.com/repos/anderskm/gputil/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/anderskm/gputil/issues/6/comments","events_url":"https://api.github.com/repos/anderskm/gputil/issues/6/events","html_url":"https://github.com/anderskm/gputil/issues/6","id":316681507,"number":6,"title":"`memoryUsed` is not realtime","user":{"login":"simfeng","id":13317594,"avatar_url":"https://avatars0.githubusercontent.com/u/13317594?v=4","gravatar_id":"","url":"https://api.github.com/users/simfeng","html_url":"https://github.com/simfeng","followers_url":"https://api.github.com/users/simfeng/followers","following_url":"https://api.github.com/users/simfeng/following{/other_user}","gists_url":"https://api.github.com/users/simfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/simfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simfeng/subscriptions","organizations_url":"https://api.github.com/users/simfeng/orgs","repos_url":"https://api.github.com/users/simfeng/repos","events_url":"https://api.github.com/users/simfeng/events{/privacy}","received_events_url":"https://api.github.com/users/simfeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T06:43:44Z","updated_at":"2018-04-23T06:43:44Z","closed_at":null,"author_association":"NONE","body":"code as below\r\n```\r\ng0 = GPUtil.getGPUs()[0]\r\ng0.memoryUsed  # output 11768.0\r\n```\r\n\r\nbut, the `nvidia-smi` shows\r\n```\r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 390.30                 Driver Version: 390.30                    |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n|===============================+======================+======================|\r\n|   0  TITAN Xp            Off  | 00000000:02:00.0 Off |                  N/A |\r\n| 23%   33C    P8    16W / 250W |    171MiB / 12196MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n|   1  TITAN Xp            Off  | 00000000:82:00.0 Off |                  N/A |\r\n| 23%   31C    P8    10W / 250W |     10MiB / 12196MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n```\r\n\r\n`memoryUsed` is not realtime, however, after I redo `g0 = GPUtil.getGPUs()[0]`, the output changed."}}
{"actor":{"display_login":"simfeng"}}