{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/pai/issues/1667","repository_url":"https://api.github.com/repos/Microsoft/pai","labels_url":"https://api.github.com/repos/Microsoft/pai/issues/1667/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pai/issues/1667/comments","events_url":"https://api.github.com/repos/Microsoft/pai/issues/1667/events","html_url":"https://github.com/Microsoft/pai/issues/1667","id":378156697,"node_id":"MDU6SXNzdWUzNzgxNTY2OTc=","number":1667,"title":"provide NVIDIA_VISIBLE_DEVICES environment variable to nvidia-container-runtime","user":{"login":"xudifsd","id":665253,"node_id":"MDQ6VXNlcjY2NTI1Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/665253?v=4","gravatar_id":"","url":"https://api.github.com/users/xudifsd","html_url":"https://github.com/xudifsd","followers_url":"https://api.github.com/users/xudifsd/followers","following_url":"https://api.github.com/users/xudifsd/following{/other_user}","gists_url":"https://api.github.com/users/xudifsd/gists{/gist_id}","starred_url":"https://api.github.com/users/xudifsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xudifsd/subscriptions","organizations_url":"https://api.github.com/users/xudifsd/orgs","repos_url":"https://api.github.com/users/xudifsd/repos","events_url":"https://api.github.com/users/xudifsd/events{/privacy}","received_events_url":"https://api.github.com/users/xudifsd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"xudifsd","id":665253,"node_id":"MDQ6VXNlcjY2NTI1Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/665253?v=4","gravatar_id":"","url":"https://api.github.com/users/xudifsd","html_url":"https://github.com/xudifsd","followers_url":"https://api.github.com/users/xudifsd/followers","following_url":"https://api.github.com/users/xudifsd/following{/other_user}","gists_url":"https://api.github.com/users/xudifsd/gists{/gist_id}","starred_url":"https://api.github.com/users/xudifsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xudifsd/subscriptions","organizations_url":"https://api.github.com/users/xudifsd/orgs","repos_url":"https://api.github.com/users/xudifsd/repos","events_url":"https://api.github.com/users/xudifsd/events{/privacy}","received_events_url":"https://api.github.com/users/xudifsd/received_events","type":"User","site_admin":false},"assignees":[{"login":"xudifsd","id":665253,"node_id":"MDQ6VXNlcjY2NTI1Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/665253?v=4","gravatar_id":"","url":"https://api.github.com/users/xudifsd","html_url":"https://github.com/xudifsd","followers_url":"https://api.github.com/users/xudifsd/followers","following_url":"https://api.github.com/users/xudifsd/following{/other_user}","gists_url":"https://api.github.com/users/xudifsd/gists{/gist_id}","starred_url":"https://api.github.com/users/xudifsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xudifsd/subscriptions","organizations_url":"https://api.github.com/users/xudifsd/orgs","repos_url":"https://api.github.com/users/xudifsd/repos","events_url":"https://api.github.com/users/xudifsd/events{/privacy}","received_events_url":"https://api.github.com/users/xudifsd/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-07T06:19:45Z","updated_at":"2018-11-07T10:08:07Z","closed_at":null,"author_association":"MEMBER","body":"Currently, we use `--device=/dev/nvidia0` to tell docker isolate gpu for jobs. But this parameter seems is ignored by `nvidia-container-runtime`. If we want to achieve same effect of gpu isolation, we should pass NVIDIA_VISIBLE_DEVICES to `docker run` like `-e NVIDIA_VISIBLE_DEVICES=0,1`."},"comment":{"url":"https://api.github.com/repos/Microsoft/pai/issues/comments/436572153","html_url":"https://github.com/Microsoft/pai/issues/1667#issuecomment-436572153","issue_url":"https://api.github.com/repos/Microsoft/pai/issues/1667","id":436572153,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjU3MjE1Mw==","user":{"login":"xudifsd","id":665253,"node_id":"MDQ6VXNlcjY2NTI1Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/665253?v=4","gravatar_id":"","url":"https://api.github.com/users/xudifsd","html_url":"https://github.com/xudifsd","followers_url":"https://api.github.com/users/xudifsd/followers","following_url":"https://api.github.com/users/xudifsd/following{/other_user}","gists_url":"https://api.github.com/users/xudifsd/gists{/gist_id}","starred_url":"https://api.github.com/users/xudifsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xudifsd/subscriptions","organizations_url":"https://api.github.com/users/xudifsd/orgs","repos_url":"https://api.github.com/users/xudifsd/repos","events_url":"https://api.github.com/users/xudifsd/events{/privacy}","received_events_url":"https://api.github.com/users/xudifsd/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T10:08:07Z","updated_at":"2018-11-07T10:08:07Z","author_association":"MEMBER","body":"this variable can be override by `-e` parameter."}}
{"actor":{"display_login":"xudifsd"}}