{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5196","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5196/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5196/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5196/events","html_url":"https://github.com/tensorflow/tensorflow/pull/5196","id":185164983,"number":5196,"title":"Changed context creation to use primary context","user":{"login":"ptrendx","id":8398980,"avatar_url":"https://avatars.githubusercontent.com/u/8398980?v=3","gravatar_id":"","url":"https://api.github.com/users/ptrendx","html_url":"https://github.com/ptrendx","followers_url":"https://api.github.com/users/ptrendx/followers","following_url":"https://api.github.com/users/ptrendx/following{/other_user}","gists_url":"https://api.github.com/users/ptrendx/gists{/gist_id}","starred_url":"https://api.github.com/users/ptrendx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptrendx/subscriptions","organizations_url":"https://api.github.com/users/ptrendx/orgs","repos_url":"https://api.github.com/users/ptrendx/repos","events_url":"https://api.github.com/users/ptrendx/events{/privacy}","received_events_url":"https://api.github.com/users/ptrendx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20googler","name":"awaiting googler","color":"b60205"},{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"henline","id":17771000,"avatar_url":"https://avatars.githubusercontent.com/u/17771000?v=3","gravatar_id":"","url":"https://api.github.com/users/henline","html_url":"https://github.com/henline","followers_url":"https://api.github.com/users/henline/followers","following_url":"https://api.github.com/users/henline/following{/other_user}","gists_url":"https://api.github.com/users/henline/gists{/gist_id}","starred_url":"https://api.github.com/users/henline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henline/subscriptions","organizations_url":"https://api.github.com/users/henline/orgs","repos_url":"https://api.github.com/users/henline/repos","events_url":"https://api.github.com/users/henline/events{/privacy}","received_events_url":"https://api.github.com/users/henline/received_events","type":"User","site_admin":false},"assignees":[{"login":"henline","id":17771000,"avatar_url":"https://avatars.githubusercontent.com/u/17771000?v=3","gravatar_id":"","url":"https://api.github.com/users/henline","html_url":"https://github.com/henline","followers_url":"https://api.github.com/users/henline/followers","following_url":"https://api.github.com/users/henline/following{/other_user}","gists_url":"https://api.github.com/users/henline/gists{/gist_id}","starred_url":"https://api.github.com/users/henline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henline/subscriptions","organizations_url":"https://api.github.com/users/henline/orgs","repos_url":"https://api.github.com/users/henline/repos","events_url":"https://api.github.com/users/henline/events{/privacy}","received_events_url":"https://api.github.com/users/henline/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-10-25T16:16:27Z","updated_at":"2016-10-26T00:05:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5196","html_url":"https://github.com/tensorflow/tensorflow/pull/5196","diff_url":"https://github.com/tensorflow/tensorflow/pull/5196.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/5196.patch"},"body":"Using cuCtxCreate/Destroy does not give any benefits over using primary context and is not advised by the CUDA documentation: http://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#multiple-contexts.\r\nMoreover, it breaks interaction with some runtime API calls, like cudaPointerGetAttributes and cudaEnablePeerAccess (see section Context Interoperability in: http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__DRIVER.html#group__CUDART__DRIVER).\r\nThis PR changes how the context are obtained and released from cuCtxCreate/Destroy to cuDevicePrimaryCtxRetain/Release "},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/256214133","html_url":"https://github.com/tensorflow/tensorflow/pull/5196#issuecomment-256214133","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5196","id":256214133,"user":{"login":"zheng-xq","id":15736910,"avatar_url":"https://avatars.githubusercontent.com/u/15736910?v=3","gravatar_id":"","url":"https://api.github.com/users/zheng-xq","html_url":"https://github.com/zheng-xq","followers_url":"https://api.github.com/users/zheng-xq/followers","following_url":"https://api.github.com/users/zheng-xq/following{/other_user}","gists_url":"https://api.github.com/users/zheng-xq/gists{/gist_id}","starred_url":"https://api.github.com/users/zheng-xq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zheng-xq/subscriptions","organizations_url":"https://api.github.com/users/zheng-xq/orgs","repos_url":"https://api.github.com/users/zheng-xq/repos","events_url":"https://api.github.com/users/zheng-xq/events{/privacy}","received_events_url":"https://api.github.com/users/zheng-xq/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T00:05:13Z","updated_at":"2016-10-26T00:05:13Z","body":"@tensorflow-jenkins test this please. "}}
{"actor":{"display_login":"zheng-xq"}}