{"action":"created","comment":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/comments/45444374","id":45444374,"diff_hunk":"@@ -318,6 +318,15 @@ void P2PSync<Dtype>::on_start() {\n     CUDA_CHECK(cudaStreamSynchronize(cudaStreamDefault));\n     children_[i]->queue_.push(this);\n   }\n+\n+  // Move syncedmem head to HEAD_AT_GPU\n+  const vector<Blob<Dtype>*>& params = solver_->net()->learnable_params();\n+  Dtype* mutable_gpu_data;\n+  for (int i = 0; i < params.size(); ++i) {\n+    mutable_gpu_data = params[i]->mutable_gpu_data();\n+    mutable_gpu_data++; // added to prevent the warning message of compilers","path":"src/caffe/parallel.cpp","position":10,"original_position":10,"commit_id":"b0e587fda9562a5bcd81cbaf4213b9c50f272ad5","original_commit_id":"b0e587fda9562a5bcd81cbaf4213b9c50f272ad5","user":{"login":"lim0606","id":4983224,"avatar_url":"https://avatars.githubusercontent.com/u/4983224?v=3","gravatar_id":"","url":"https://api.github.com/users/lim0606","html_url":"https://github.com/lim0606","followers_url":"https://api.github.com/users/lim0606/followers","following_url":"https://api.github.com/users/lim0606/following{/other_user}","gists_url":"https://api.github.com/users/lim0606/gists{/gist_id}","starred_url":"https://api.github.com/users/lim0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lim0606/subscriptions","organizations_url":"https://api.github.com/users/lim0606/orgs","repos_url":"https://api.github.com/users/lim0606/repos","events_url":"https://api.github.com/users/lim0606/events{/privacy}","received_events_url":"https://api.github.com/users/lim0606/received_events","type":"User","site_admin":false},"body":"That sounds great :+1:  Thanks :) ","created_at":"2015-11-20T08:15:10Z","updated_at":"2015-11-20T08:15:10Z","html_url":"https://github.com/BVLC/caffe/pull/3357#discussion_r45444374","pull_request_url":"https://api.github.com/repos/BVLC/caffe/pulls/3357","_links":{"self":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/comments/45444374"},"html":{"href":"https://github.com/BVLC/caffe/pull/3357#discussion_r45444374"},"pull_request":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/3357"}}},"pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/3357","id":51214458,"html_url":"https://github.com/BVLC/caffe/pull/3357","diff_url":"https://github.com/BVLC/caffe/pull/3357.diff","patch_url":"https://github.com/BVLC/caffe/pull/3357.patch","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/3357","number":3357,"state":"open","locked":false,"title":"add lines to move the heads of the syncedmems of the learnable params…","user":{"login":"lim0606","id":4983224,"avatar_url":"https://avatars.githubusercontent.com/u/4983224?v=3","gravatar_id":"","url":"https://api.github.com/users/lim0606","html_url":"https://github.com/lim0606","followers_url":"https://api.github.com/users/lim0606/followers","following_url":"https://api.github.com/users/lim0606/following{/other_user}","gists_url":"https://api.github.com/users/lim0606/gists{/gist_id}","starred_url":"https://api.github.com/users/lim0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lim0606/subscriptions","organizations_url":"https://api.github.com/users/lim0606/orgs","repos_url":"https://api.github.com/users/lim0606/repos","events_url":"https://api.github.com/users/lim0606/events{/privacy}","received_events_url":"https://api.github.com/users/lim0606/received_events","type":"User","site_admin":false},"body":"The current implementation of the multigpu support does not move the heads (of the syncedmems) of the learnable params in non-root_solvers to HEAD_AT_GPU.\r\n\r\nBecause of that, the data in the pointer not synced when you need to call cpu_data().\r\n\r\nTo solve this issue, added lines to call mutable_gpu_data() in on_start() function in parallel.cpp","created_at":"2015-11-19T12:11:12Z","updated_at":"2015-11-20T08:15:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f737b6d62e69d805e25df9b752b542c84810688","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BVLC/caffe/pulls/3357/commits","review_comments_url":"https://api.github.com/repos/BVLC/caffe/pulls/3357/comments","review_comment_url":"https://api.github.com/repos/BVLC/caffe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3357/comments","statuses_url":"https://api.github.com/repos/BVLC/caffe/statuses/b0e587fda9562a5bcd81cbaf4213b9c50f272ad5","head":{"label":"lim0606:master","ref":"master","sha":"b0e587fda9562a5bcd81cbaf4213b9c50f272ad5","user":{"login":"lim0606","id":4983224,"avatar_url":"https://avatars.githubusercontent.com/u/4983224?v=3","gravatar_id":"","url":"https://api.github.com/users/lim0606","html_url":"https://github.com/lim0606","followers_url":"https://api.github.com/users/lim0606/followers","following_url":"https://api.github.com/users/lim0606/following{/other_user}","gists_url":"https://api.github.com/users/lim0606/gists{/gist_id}","starred_url":"https://api.github.com/users/lim0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lim0606/subscriptions","organizations_url":"https://api.github.com/users/lim0606/orgs","repos_url":"https://api.github.com/users/lim0606/repos","events_url":"https://api.github.com/users/lim0606/events{/privacy}","received_events_url":"https://api.github.com/users/lim0606/received_events","type":"User","site_admin":false},"repo":{"id":46218973,"name":"caffe","full_name":"lim0606/caffe","owner":{"login":"lim0606","id":4983224,"avatar_url":"https://avatars.githubusercontent.com/u/4983224?v=3","gravatar_id":"","url":"https://api.github.com/users/lim0606","html_url":"https://github.com/lim0606","followers_url":"https://api.github.com/users/lim0606/followers","following_url":"https://api.github.com/users/lim0606/following{/other_user}","gists_url":"https://api.github.com/users/lim0606/gists{/gist_id}","starred_url":"https://api.github.com/users/lim0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lim0606/subscriptions","organizations_url":"https://api.github.com/users/lim0606/orgs","repos_url":"https://api.github.com/users/lim0606/repos","events_url":"https://api.github.com/users/lim0606/events{/privacy}","received_events_url":"https://api.github.com/users/lim0606/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lim0606/caffe","description":"Caffe: a fast open framework for deep learning.","fork":true,"url":"https://api.github.com/repos/lim0606/caffe","forks_url":"https://api.github.com/repos/lim0606/caffe/forks","keys_url":"https://api.github.com/repos/lim0606/caffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lim0606/caffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lim0606/caffe/teams","hooks_url":"https://api.github.com/repos/lim0606/caffe/hooks","issue_events_url":"https://api.github.com/repos/lim0606/caffe/issues/events{/number}","events_url":"https://api.github.com/repos/lim0606/caffe/events","assignees_url":"https://api.github.com/repos/lim0606/caffe/assignees{/user}","branches_url":"https://api.github.com/repos/lim0606/caffe/branches{/branch}","tags_url":"https://api.github.com/repos/lim0606/caffe/tags","blobs_url":"https://api.github.com/repos/lim0606/caffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lim0606/caffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lim0606/caffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/lim0606/caffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lim0606/caffe/statuses/{sha}","languages_url":"https://api.github.com/repos/lim0606/caffe/languages","stargazers_url":"https://api.github.com/repos/lim0606/caffe/stargazers","contributors_url":"https://api.github.com/repos/lim0606/caffe/contributors","subscribers_url":"https://api.github.com/repos/lim0606/caffe/subscribers","subscription_url":"https://api.github.com/repos/lim0606/caffe/subscription","commits_url":"https://api.github.com/repos/lim0606/caffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/lim0606/caffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/lim0606/caffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/lim0606/caffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/lim0606/caffe/contents/{+path}","compare_url":"https://api.github.com/repos/lim0606/caffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lim0606/caffe/merges","archive_url":"https://api.github.com/repos/lim0606/caffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lim0606/caffe/downloads","issues_url":"https://api.github.com/repos/lim0606/caffe/issues{/number}","pulls_url":"https://api.github.com/repos/lim0606/caffe/pulls{/number}","milestones_url":"https://api.github.com/repos/lim0606/caffe/milestones{/number}","notifications_url":"https://api.github.com/repos/lim0606/caffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lim0606/caffe/labels{/name}","releases_url":"https://api.github.com/repos/lim0606/caffe/releases{/id}","created_at":"2015-11-15T13:37:39Z","updated_at":"2015-11-15T13:37:42Z","pushed_at":"2015-11-19T12:01:09Z","git_url":"git://github.com/lim0606/caffe.git","ssh_url":"git@github.com:lim0606/caffe.git","clone_url":"https://github.com/lim0606/caffe.git","svn_url":"https://github.com/lim0606/caffe","homepage":"http://caffe.berkeleyvision.org/","size":33913,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BVLC:master","ref":"master","sha":"603cbfb97767d1b9ebf102200646f5df237d1749","user":{"login":"BVLC","id":6182163,"avatar_url":"https://avatars.githubusercontent.com/u/6182163?v=3","gravatar_id":"","url":"https://api.github.com/users/BVLC","html_url":"https://github.com/BVLC","followers_url":"https://api.github.com/users/BVLC/followers","following_url":"https://api.github.com/users/BVLC/following{/other_user}","gists_url":"https://api.github.com/users/BVLC/gists{/gist_id}","starred_url":"https://api.github.com/users/BVLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BVLC/subscriptions","organizations_url":"https://api.github.com/users/BVLC/orgs","repos_url":"https://api.github.com/users/BVLC/repos","events_url":"https://api.github.com/users/BVLC/events{/privacy}","received_events_url":"https://api.github.com/users/BVLC/received_events","type":"Organization","site_admin":false},"repo":{"id":12791642,"name":"caffe","full_name":"BVLC/caffe","owner":{"login":"BVLC","id":6182163,"avatar_url":"https://avatars.githubusercontent.com/u/6182163?v=3","gravatar_id":"","url":"https://api.github.com/users/BVLC","html_url":"https://github.com/BVLC","followers_url":"https://api.github.com/users/BVLC/followers","following_url":"https://api.github.com/users/BVLC/following{/other_user}","gists_url":"https://api.github.com/users/BVLC/gists{/gist_id}","starred_url":"https://api.github.com/users/BVLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BVLC/subscriptions","organizations_url":"https://api.github.com/users/BVLC/orgs","repos_url":"https://api.github.com/users/BVLC/repos","events_url":"https://api.github.com/users/BVLC/events{/privacy}","received_events_url":"https://api.github.com/users/BVLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BVLC/caffe","description":"Caffe: a fast open framework for deep learning.","fork":false,"url":"https://api.github.com/repos/BVLC/caffe","forks_url":"https://api.github.com/repos/BVLC/caffe/forks","keys_url":"https://api.github.com/repos/BVLC/caffe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BVLC/caffe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BVLC/caffe/teams","hooks_url":"https://api.github.com/repos/BVLC/caffe/hooks","issue_events_url":"https://api.github.com/repos/BVLC/caffe/issues/events{/number}","events_url":"https://api.github.com/repos/BVLC/caffe/events","assignees_url":"https://api.github.com/repos/BVLC/caffe/assignees{/user}","branches_url":"https://api.github.com/repos/BVLC/caffe/branches{/branch}","tags_url":"https://api.github.com/repos/BVLC/caffe/tags","blobs_url":"https://api.github.com/repos/BVLC/caffe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BVLC/caffe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BVLC/caffe/git/refs{/sha}","trees_url":"https://api.github.com/repos/BVLC/caffe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BVLC/caffe/statuses/{sha}","languages_url":"https://api.github.com/repos/BVLC/caffe/languages","stargazers_url":"https://api.github.com/repos/BVLC/caffe/stargazers","contributors_url":"https://api.github.com/repos/BVLC/caffe/contributors","subscribers_url":"https://api.github.com/repos/BVLC/caffe/subscribers","subscription_url":"https://api.github.com/repos/BVLC/caffe/subscription","commits_url":"https://api.github.com/repos/BVLC/caffe/commits{/sha}","git_commits_url":"https://api.github.com/repos/BVLC/caffe/git/commits{/sha}","comments_url":"https://api.github.com/repos/BVLC/caffe/comments{/number}","issue_comment_url":"https://api.github.com/repos/BVLC/caffe/issues/comments{/number}","contents_url":"https://api.github.com/repos/BVLC/caffe/contents/{+path}","compare_url":"https://api.github.com/repos/BVLC/caffe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BVLC/caffe/merges","archive_url":"https://api.github.com/repos/BVLC/caffe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BVLC/caffe/downloads","issues_url":"https://api.github.com/repos/BVLC/caffe/issues{/number}","pulls_url":"https://api.github.com/repos/BVLC/caffe/pulls{/number}","milestones_url":"https://api.github.com/repos/BVLC/caffe/milestones{/number}","notifications_url":"https://api.github.com/repos/BVLC/caffe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BVLC/caffe/labels{/name}","releases_url":"https://api.github.com/repos/BVLC/caffe/releases{/id}","created_at":"2013-09-12T18:39:48Z","updated_at":"2015-11-20T06:59:10Z","pushed_at":"2015-11-20T08:12:25Z","git_url":"git://github.com/BVLC/caffe.git","ssh_url":"git@github.com:BVLC/caffe.git","clone_url":"https://github.com/BVLC/caffe.git","svn_url":"https://github.com/BVLC/caffe","homepage":"http://caffe.berkeleyvision.org/","size":73857,"stargazers_count":7102,"watchers_count":7102,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4032,"mirror_url":null,"open_issues_count":425,"forks":4032,"open_issues":425,"watchers":7102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/3357"},"html":{"href":"https://github.com/BVLC/caffe/pull/3357"},"issue":{"href":"https://api.github.com/repos/BVLC/caffe/issues/3357"},"comments":{"href":"https://api.github.com/repos/BVLC/caffe/issues/3357/comments"},"review_comments":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/3357/comments"},"review_comment":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BVLC/caffe/pulls/3357/commits"},"statuses":{"href":"https://api.github.com/repos/BVLC/caffe/statuses/b0e587fda9562a5bcd81cbaf4213b9c50f272ad5"}}}}