{"action":"created","issue":{"url":"https://api.github.com/repos/Theano/Theano/issues/2182","labels_url":"https://api.github.com/repos/Theano/Theano/issues/2182/labels{/name}","comments_url":"https://api.github.com/repos/Theano/Theano/issues/2182/comments","events_url":"https://api.github.com/repos/Theano/Theano/issues/2182/events","html_url":"https://github.com/Theano/Theano/pull/2182","id":45914225,"number":2182,"title":"Add a mechanism to use more than one (gpu) context in a single theano function","user":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"milestone":null,"comments":40,"created_at":"2014-10-15T20:20:41Z","updated_at":"2015-02-24T18:01:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Theano/Theano/pulls/2182","html_url":"https://github.com/Theano/Theano/pull/2182","diff_url":"https://github.com/Theano/Theano/pull/2182.diff","patch_url":"https://github.com/Theano/Theano/pull/2182.patch"},"body":"__Disclaimer:__ This is work in progress.  Some changes made here will cause a lot of code to not work anymore, so don't use this branch unless you are prepared to deal with that.\r\n\r\nThis add some optional methods on Ops that will trigger CLinker to pass a context argument that will be available at init and runtime.  This context is typed according to the the type specified by the op.\r\n\r\nAlso this makes the context a part of the theano Type for GpuArray.  This way, most Ops will know what context they are going to work with and it makes it easy for the context to propagate through the graph.\r\n\r\nTODO:\r\n\r\n - [x] Trivial example with 2 dots on different GPUs.\r\n - [x] Fix crash with tests/optimizations.\r\n - [x] add a way to copy a buffer from one context to another (without passing thought the CPU)\r\n - [x] Fix crash with tests/optimizations and non default context.\r\n - [x] add a way to specify the context of the inputs. (probably a tag with the context name)\r\n - [x] gpu to gpu transfer _as_GpuArrayVariabl\r\n - [ ] replicate Alex models?\r\n"},"comment":{"url":"https://api.github.com/repos/Theano/Theano/issues/comments/75810275","html_url":"https://github.com/Theano/Theano/pull/2182#issuecomment-75810275","issue_url":"https://api.github.com/repos/Theano/Theano/issues/2182","id":75810275,"user":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T18:01:23Z","updated_at":"2015-02-24T18:01:23Z","body":"This is delayed unfortunatly, and might need another rebase soon.  I might just recode it also.  We'll see."}}