{"action":"opened","number":270,"pull_request":{"url":"https://api.github.com/repos/chainer/chainermn/pulls/270","id":191659578,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNjU5NTc4","html_url":"https://github.com/chainer/chainermn/pull/270","diff_url":"https://github.com/chainer/chainermn/pull/270.diff","patch_url":"https://github.com/chainer/chainermn/pull/270.patch","issue_url":"https://api.github.com/repos/chainer/chainermn/issues/270","number":270,"state":"open","locked":false,"title":"Improve performance of fetching device memory","user":{"login":"levelfour","id":3879440,"node_id":"MDQ6VXNlcjM4Nzk0NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3879440?v=4","gravatar_id":"","url":"https://api.github.com/users/levelfour","html_url":"https://github.com/levelfour","followers_url":"https://api.github.com/users/levelfour/followers","following_url":"https://api.github.com/users/levelfour/following{/other_user}","gists_url":"https://api.github.com/users/levelfour/gists{/gist_id}","starred_url":"https://api.github.com/users/levelfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levelfour/subscriptions","organizations_url":"https://api.github.com/users/levelfour/orgs","repos_url":"https://api.github.com/users/levelfour/repos","events_url":"https://api.github.com/users/levelfour/events{/privacy}","received_events_url":"https://api.github.com/users/levelfour/received_events","type":"User","site_admin":false},"body":"As results of benchmarks, `cffi` occupies a certain amount of the computation time in model-parallel architecture.\r\nIn order to fetch device memories, the current implementation is like\r\n```python\r\nffi = cffi.FFI()\r\nreturn ffi.buffer(ffi.cast('void *', array.data.ptr), array.nbytes)\r\n```\r\nbut this can be improved as\r\n```python\r\nreturn ctypes.cast(\r\n    array.data.ptr,\r\n    ctypes.POINTER(ctypes.c_ubyte, array.nbytes)\r\n).contents\r\n```","created_at":"2018-05-31T06:53:25Z","updated_at":"2018-05-31T06:53:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chainer/chainermn/pulls/270/commits","review_comments_url":"https://api.github.com/repos/chainer/chainermn/pulls/270/comments","review_comment_url":"https://api.github.com/repos/chainer/chainermn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chainer/chainermn/issues/270/comments","statuses_url":"https://api.github.com/repos/chainer/chainermn/statuses/602021d40d4cca1110ff041bdfd942b2be9b3307","head":{"label":"levelfour:avoid-cffi","ref":"avoid-cffi","sha":"602021d40d4cca1110ff041bdfd942b2be9b3307","user":{"login":"levelfour","id":3879440,"node_id":"MDQ6VXNlcjM4Nzk0NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3879440?v=4","gravatar_id":"","url":"https://api.github.com/users/levelfour","html_url":"https://github.com/levelfour","followers_url":"https://api.github.com/users/levelfour/followers","following_url":"https://api.github.com/users/levelfour/following{/other_user}","gists_url":"https://api.github.com/users/levelfour/gists{/gist_id}","starred_url":"https://api.github.com/users/levelfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levelfour/subscriptions","organizations_url":"https://api.github.com/users/levelfour/orgs","repos_url":"https://api.github.com/users/levelfour/repos","events_url":"https://api.github.com/users/levelfour/events{/privacy}","received_events_url":"https://api.github.com/users/levelfour/received_events","type":"User","site_admin":false},"repo":{"id":91558401,"node_id":"MDEwOlJlcG9zaXRvcnk5MTU1ODQwMQ==","name":"chainermn","full_name":"levelfour/chainermn","owner":{"login":"levelfour","id":3879440,"node_id":"MDQ6VXNlcjM4Nzk0NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3879440?v=4","gravatar_id":"","url":"https://api.github.com/users/levelfour","html_url":"https://github.com/levelfour","followers_url":"https://api.github.com/users/levelfour/followers","following_url":"https://api.github.com/users/levelfour/following{/other_user}","gists_url":"https://api.github.com/users/levelfour/gists{/gist_id}","starred_url":"https://api.github.com/users/levelfour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levelfour/subscriptions","organizations_url":"https://api.github.com/users/levelfour/orgs","repos_url":"https://api.github.com/users/levelfour/repos","events_url":"https://api.github.com/users/levelfour/events{/privacy}","received_events_url":"https://api.github.com/users/levelfour/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/levelfour/chainermn","description":"ChainerMN: Scalable distributed deep learning with Chainer","fork":true,"url":"https://api.github.com/repos/levelfour/chainermn","forks_url":"https://api.github.com/repos/levelfour/chainermn/forks","keys_url":"https://api.github.com/repos/levelfour/chainermn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/levelfour/chainermn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/levelfour/chainermn/teams","hooks_url":"https://api.github.com/repos/levelfour/chainermn/hooks","issue_events_url":"https://api.github.com/repos/levelfour/chainermn/issues/events{/number}","events_url":"https://api.github.com/repos/levelfour/chainermn/events","assignees_url":"https://api.github.com/repos/levelfour/chainermn/assignees{/user}","branches_url":"https://api.github.com/repos/levelfour/chainermn/branches{/branch}","tags_url":"https://api.github.com/repos/levelfour/chainermn/tags","blobs_url":"https://api.github.com/repos/levelfour/chainermn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/levelfour/chainermn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/levelfour/chainermn/git/refs{/sha}","trees_url":"https://api.github.com/repos/levelfour/chainermn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/levelfour/chainermn/statuses/{sha}","languages_url":"https://api.github.com/repos/levelfour/chainermn/languages","stargazers_url":"https://api.github.com/repos/levelfour/chainermn/stargazers","contributors_url":"https://api.github.com/repos/levelfour/chainermn/contributors","subscribers_url":"https://api.github.com/repos/levelfour/chainermn/subscribers","subscription_url":"https://api.github.com/repos/levelfour/chainermn/subscription","commits_url":"https://api.github.com/repos/levelfour/chainermn/commits{/sha}","git_commits_url":"https://api.github.com/repos/levelfour/chainermn/git/commits{/sha}","comments_url":"https://api.github.com/repos/levelfour/chainermn/comments{/number}","issue_comment_url":"https://api.github.com/repos/levelfour/chainermn/issues/comments{/number}","contents_url":"https://api.github.com/repos/levelfour/chainermn/contents/{+path}","compare_url":"https://api.github.com/repos/levelfour/chainermn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/levelfour/chainermn/merges","archive_url":"https://api.github.com/repos/levelfour/chainermn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/levelfour/chainermn/downloads","issues_url":"https://api.github.com/repos/levelfour/chainermn/issues{/number}","pulls_url":"https://api.github.com/repos/levelfour/chainermn/pulls{/number}","milestones_url":"https://api.github.com/repos/levelfour/chainermn/milestones{/number}","notifications_url":"https://api.github.com/repos/levelfour/chainermn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/levelfour/chainermn/labels{/name}","releases_url":"https://api.github.com/repos/levelfour/chainermn/releases{/id}","deployments_url":"https://api.github.com/repos/levelfour/chainermn/deployments","created_at":"2017-05-17T09:23:44Z","updated_at":"2018-05-31T01:16:33Z","pushed_at":"2018-05-31T06:48:11Z","git_url":"git://github.com/levelfour/chainermn.git","ssh_url":"git@github.com:levelfour/chainermn.git","clone_url":"https://github.com/levelfour/chainermn.git","svn_url":"https://github.com/levelfour/chainermn","homepage":"","size":3098,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chainer:master","ref":"master","sha":"327a766086e834cf108daad1df6c3cf3eebb9e84","user":{"login":"chainer","id":23183003,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTgzMDAz","avatar_url":"https://avatars3.githubusercontent.com/u/23183003?v=4","gravatar_id":"","url":"https://api.github.com/users/chainer","html_url":"https://github.com/chainer","followers_url":"https://api.github.com/users/chainer/followers","following_url":"https://api.github.com/users/chainer/following{/other_user}","gists_url":"https://api.github.com/users/chainer/gists{/gist_id}","starred_url":"https://api.github.com/users/chainer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainer/subscriptions","organizations_url":"https://api.github.com/users/chainer/orgs","repos_url":"https://api.github.com/users/chainer/repos","events_url":"https://api.github.com/users/chainer/events{/privacy}","received_events_url":"https://api.github.com/users/chainer/received_events","type":"Organization","site_admin":false},"repo":{"id":80491716,"node_id":"MDEwOlJlcG9zaXRvcnk4MDQ5MTcxNg==","name":"chainermn","full_name":"chainer/chainermn","owner":{"login":"chainer","id":23183003,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTgzMDAz","avatar_url":"https://avatars3.githubusercontent.com/u/23183003?v=4","gravatar_id":"","url":"https://api.github.com/users/chainer","html_url":"https://github.com/chainer","followers_url":"https://api.github.com/users/chainer/followers","following_url":"https://api.github.com/users/chainer/following{/other_user}","gists_url":"https://api.github.com/users/chainer/gists{/gist_id}","starred_url":"https://api.github.com/users/chainer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainer/subscriptions","organizations_url":"https://api.github.com/users/chainer/orgs","repos_url":"https://api.github.com/users/chainer/repos","events_url":"https://api.github.com/users/chainer/events{/privacy}","received_events_url":"https://api.github.com/users/chainer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chainer/chainermn","description":"ChainerMN: Scalable distributed deep learning with Chainer","fork":false,"url":"https://api.github.com/repos/chainer/chainermn","forks_url":"https://api.github.com/repos/chainer/chainermn/forks","keys_url":"https://api.github.com/repos/chainer/chainermn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chainer/chainermn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chainer/chainermn/teams","hooks_url":"https://api.github.com/repos/chainer/chainermn/hooks","issue_events_url":"https://api.github.com/repos/chainer/chainermn/issues/events{/number}","events_url":"https://api.github.com/repos/chainer/chainermn/events","assignees_url":"https://api.github.com/repos/chainer/chainermn/assignees{/user}","branches_url":"https://api.github.com/repos/chainer/chainermn/branches{/branch}","tags_url":"https://api.github.com/repos/chainer/chainermn/tags","blobs_url":"https://api.github.com/repos/chainer/chainermn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chainer/chainermn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chainer/chainermn/git/refs{/sha}","trees_url":"https://api.github.com/repos/chainer/chainermn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chainer/chainermn/statuses/{sha}","languages_url":"https://api.github.com/repos/chainer/chainermn/languages","stargazers_url":"https://api.github.com/repos/chainer/chainermn/stargazers","contributors_url":"https://api.github.com/repos/chainer/chainermn/contributors","subscribers_url":"https://api.github.com/repos/chainer/chainermn/subscribers","subscription_url":"https://api.github.com/repos/chainer/chainermn/subscription","commits_url":"https://api.github.com/repos/chainer/chainermn/commits{/sha}","git_commits_url":"https://api.github.com/repos/chainer/chainermn/git/commits{/sha}","comments_url":"https://api.github.com/repos/chainer/chainermn/comments{/number}","issue_comment_url":"https://api.github.com/repos/chainer/chainermn/issues/comments{/number}","contents_url":"https://api.github.com/repos/chainer/chainermn/contents/{+path}","compare_url":"https://api.github.com/repos/chainer/chainermn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chainer/chainermn/merges","archive_url":"https://api.github.com/repos/chainer/chainermn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chainer/chainermn/downloads","issues_url":"https://api.github.com/repos/chainer/chainermn/issues{/number}","pulls_url":"https://api.github.com/repos/chainer/chainermn/pulls{/number}","milestones_url":"https://api.github.com/repos/chainer/chainermn/milestones{/number}","notifications_url":"https://api.github.com/repos/chainer/chainermn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chainer/chainermn/labels{/name}","releases_url":"https://api.github.com/repos/chainer/chainermn/releases{/id}","deployments_url":"https://api.github.com/repos/chainer/chainermn/deployments","created_at":"2017-01-31T04:41:49Z","updated_at":"2018-05-26T05:05:33Z","pushed_at":"2018-05-31T02:52:33Z","git_url":"git://github.com/chainer/chainermn.git","ssh_url":"git@github.com:chainer/chainermn.git","clone_url":"https://github.com/chainer/chainermn.git","svn_url":"https://github.com/chainer/chainermn","homepage":"","size":3103,"stargazers_count":161,"watchers_count":161,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":48,"open_issues":18,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chainer/chainermn/pulls/270"},"html":{"href":"https://github.com/chainer/chainermn/pull/270"},"issue":{"href":"https://api.github.com/repos/chainer/chainermn/issues/270"},"comments":{"href":"https://api.github.com/repos/chainer/chainermn/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/chainer/chainermn/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/chainer/chainermn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chainer/chainermn/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/chainer/chainermn/statuses/602021d40d4cca1110ff041bdfd942b2be9b3307"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"levelfour"}}