{"action":"opened","number":102,"pull_request":{"url":"https://api.github.com/repos/inducer/pycuda/pulls/102","id":60717827,"html_url":"https://github.com/inducer/pycuda/pull/102","diff_url":"https://github.com/inducer/pycuda/pull/102.diff","patch_url":"https://github.com/inducer/pycuda/pull/102.patch","issue_url":"https://api.github.com/repos/inducer/pycuda/issues/102","number":102,"state":"open","locked":false,"title":"Add way to access primary context","user":{"login":"apark263","id":3529132,"avatar_url":"https://avatars.githubusercontent.com/u/3529132?v=3","gravatar_id":"","url":"https://api.github.com/users/apark263","html_url":"https://github.com/apark263","followers_url":"https://api.github.com/users/apark263/followers","following_url":"https://api.github.com/users/apark263/following{/other_user}","gists_url":"https://api.github.com/users/apark263/gists{/gist_id}","starred_url":"https://api.github.com/users/apark263/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apark263/subscriptions","organizations_url":"https://api.github.com/users/apark263/orgs","repos_url":"https://api.github.com/users/apark263/repos","events_url":"https://api.github.com/users/apark263/events{/privacy}","received_events_url":"https://api.github.com/users/apark263/received_events","type":"User","site_admin":false},"body":"Not sure if this would be the best way to do things, but I need a way to access and then make the primary context current for a separate shared lib that uses the runtime api.","created_at":"2016-02-25T17:41:22Z","updated_at":"2016-02-25T17:41:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inducer/pycuda/pulls/102/commits","review_comments_url":"https://api.github.com/repos/inducer/pycuda/pulls/102/comments","review_comment_url":"https://api.github.com/repos/inducer/pycuda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inducer/pycuda/issues/102/comments","statuses_url":"https://api.github.com/repos/inducer/pycuda/statuses/79ebeb1104b8e61fc67e4f0c781ad354a4451e63","head":{"label":"apark263:master","ref":"master","sha":"79ebeb1104b8e61fc67e4f0c781ad354a4451e63","user":{"login":"apark263","id":3529132,"avatar_url":"https://avatars.githubusercontent.com/u/3529132?v=3","gravatar_id":"","url":"https://api.github.com/users/apark263","html_url":"https://github.com/apark263","followers_url":"https://api.github.com/users/apark263/followers","following_url":"https://api.github.com/users/apark263/following{/other_user}","gists_url":"https://api.github.com/users/apark263/gists{/gist_id}","starred_url":"https://api.github.com/users/apark263/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apark263/subscriptions","organizations_url":"https://api.github.com/users/apark263/orgs","repos_url":"https://api.github.com/users/apark263/repos","events_url":"https://api.github.com/users/apark263/events{/privacy}","received_events_url":"https://api.github.com/users/apark263/received_events","type":"User","site_admin":false},"repo":{"id":36135597,"name":"pycuda","full_name":"apark263/pycuda","owner":{"login":"apark263","id":3529132,"avatar_url":"https://avatars.githubusercontent.com/u/3529132?v=3","gravatar_id":"","url":"https://api.github.com/users/apark263","html_url":"https://github.com/apark263","followers_url":"https://api.github.com/users/apark263/followers","following_url":"https://api.github.com/users/apark263/following{/other_user}","gists_url":"https://api.github.com/users/apark263/gists{/gist_id}","starred_url":"https://api.github.com/users/apark263/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apark263/subscriptions","organizations_url":"https://api.github.com/users/apark263/orgs","repos_url":"https://api.github.com/users/apark263/repos","events_url":"https://api.github.com/users/apark263/events{/privacy}","received_events_url":"https://api.github.com/users/apark263/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apark263/pycuda","description":"CUDA integration for Python, plus shiny features","fork":true,"url":"https://api.github.com/repos/apark263/pycuda","forks_url":"https://api.github.com/repos/apark263/pycuda/forks","keys_url":"https://api.github.com/repos/apark263/pycuda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apark263/pycuda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apark263/pycuda/teams","hooks_url":"https://api.github.com/repos/apark263/pycuda/hooks","issue_events_url":"https://api.github.com/repos/apark263/pycuda/issues/events{/number}","events_url":"https://api.github.com/repos/apark263/pycuda/events","assignees_url":"https://api.github.com/repos/apark263/pycuda/assignees{/user}","branches_url":"https://api.github.com/repos/apark263/pycuda/branches{/branch}","tags_url":"https://api.github.com/repos/apark263/pycuda/tags","blobs_url":"https://api.github.com/repos/apark263/pycuda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apark263/pycuda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apark263/pycuda/git/refs{/sha}","trees_url":"https://api.github.com/repos/apark263/pycuda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apark263/pycuda/statuses/{sha}","languages_url":"https://api.github.com/repos/apark263/pycuda/languages","stargazers_url":"https://api.github.com/repos/apark263/pycuda/stargazers","contributors_url":"https://api.github.com/repos/apark263/pycuda/contributors","subscribers_url":"https://api.github.com/repos/apark263/pycuda/subscribers","subscription_url":"https://api.github.com/repos/apark263/pycuda/subscription","commits_url":"https://api.github.com/repos/apark263/pycuda/commits{/sha}","git_commits_url":"https://api.github.com/repos/apark263/pycuda/git/commits{/sha}","comments_url":"https://api.github.com/repos/apark263/pycuda/comments{/number}","issue_comment_url":"https://api.github.com/repos/apark263/pycuda/issues/comments{/number}","contents_url":"https://api.github.com/repos/apark263/pycuda/contents/{+path}","compare_url":"https://api.github.com/repos/apark263/pycuda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apark263/pycuda/merges","archive_url":"https://api.github.com/repos/apark263/pycuda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apark263/pycuda/downloads","issues_url":"https://api.github.com/repos/apark263/pycuda/issues{/number}","pulls_url":"https://api.github.com/repos/apark263/pycuda/pulls{/number}","milestones_url":"https://api.github.com/repos/apark263/pycuda/milestones{/number}","notifications_url":"https://api.github.com/repos/apark263/pycuda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apark263/pycuda/labels{/name}","releases_url":"https://api.github.com/repos/apark263/pycuda/releases{/id}","deployments_url":"https://api.github.com/repos/apark263/pycuda/deployments","created_at":"2015-05-23T17:58:26Z","updated_at":"2016-02-25T17:38:54Z","pushed_at":"2016-02-25T17:38:50Z","git_url":"git://github.com/apark263/pycuda.git","ssh_url":"git@github.com:apark263/pycuda.git","clone_url":"https://github.com/apark263/pycuda.git","svn_url":"https://github.com/apark263/pycuda","homepage":"http://mathema.tician.de/software/pycuda","size":2584,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inducer:master","ref":"master","sha":"ac4e02aaec088fc6cf868a2b5d113463b09daa71","user":{"login":"inducer","id":352067,"avatar_url":"https://avatars.githubusercontent.com/u/352067?v=3","gravatar_id":"","url":"https://api.github.com/users/inducer","html_url":"https://github.com/inducer","followers_url":"https://api.github.com/users/inducer/followers","following_url":"https://api.github.com/users/inducer/following{/other_user}","gists_url":"https://api.github.com/users/inducer/gists{/gist_id}","starred_url":"https://api.github.com/users/inducer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inducer/subscriptions","organizations_url":"https://api.github.com/users/inducer/orgs","repos_url":"https://api.github.com/users/inducer/repos","events_url":"https://api.github.com/users/inducer/events{/privacy}","received_events_url":"https://api.github.com/users/inducer/received_events","type":"User","site_admin":false},"repo":{"id":1575319,"name":"pycuda","full_name":"inducer/pycuda","owner":{"login":"inducer","id":352067,"avatar_url":"https://avatars.githubusercontent.com/u/352067?v=3","gravatar_id":"","url":"https://api.github.com/users/inducer","html_url":"https://github.com/inducer","followers_url":"https://api.github.com/users/inducer/followers","following_url":"https://api.github.com/users/inducer/following{/other_user}","gists_url":"https://api.github.com/users/inducer/gists{/gist_id}","starred_url":"https://api.github.com/users/inducer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inducer/subscriptions","organizations_url":"https://api.github.com/users/inducer/orgs","repos_url":"https://api.github.com/users/inducer/repos","events_url":"https://api.github.com/users/inducer/events{/privacy}","received_events_url":"https://api.github.com/users/inducer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inducer/pycuda","description":"CUDA integration for Python, plus shiny features","fork":false,"url":"https://api.github.com/repos/inducer/pycuda","forks_url":"https://api.github.com/repos/inducer/pycuda/forks","keys_url":"https://api.github.com/repos/inducer/pycuda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inducer/pycuda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inducer/pycuda/teams","hooks_url":"https://api.github.com/repos/inducer/pycuda/hooks","issue_events_url":"https://api.github.com/repos/inducer/pycuda/issues/events{/number}","events_url":"https://api.github.com/repos/inducer/pycuda/events","assignees_url":"https://api.github.com/repos/inducer/pycuda/assignees{/user}","branches_url":"https://api.github.com/repos/inducer/pycuda/branches{/branch}","tags_url":"https://api.github.com/repos/inducer/pycuda/tags","blobs_url":"https://api.github.com/repos/inducer/pycuda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inducer/pycuda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inducer/pycuda/git/refs{/sha}","trees_url":"https://api.github.com/repos/inducer/pycuda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inducer/pycuda/statuses/{sha}","languages_url":"https://api.github.com/repos/inducer/pycuda/languages","stargazers_url":"https://api.github.com/repos/inducer/pycuda/stargazers","contributors_url":"https://api.github.com/repos/inducer/pycuda/contributors","subscribers_url":"https://api.github.com/repos/inducer/pycuda/subscribers","subscription_url":"https://api.github.com/repos/inducer/pycuda/subscription","commits_url":"https://api.github.com/repos/inducer/pycuda/commits{/sha}","git_commits_url":"https://api.github.com/repos/inducer/pycuda/git/commits{/sha}","comments_url":"https://api.github.com/repos/inducer/pycuda/comments{/number}","issue_comment_url":"https://api.github.com/repos/inducer/pycuda/issues/comments{/number}","contents_url":"https://api.github.com/repos/inducer/pycuda/contents/{+path}","compare_url":"https://api.github.com/repos/inducer/pycuda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inducer/pycuda/merges","archive_url":"https://api.github.com/repos/inducer/pycuda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inducer/pycuda/downloads","issues_url":"https://api.github.com/repos/inducer/pycuda/issues{/number}","pulls_url":"https://api.github.com/repos/inducer/pycuda/pulls{/number}","milestones_url":"https://api.github.com/repos/inducer/pycuda/milestones{/number}","notifications_url":"https://api.github.com/repos/inducer/pycuda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inducer/pycuda/labels{/name}","releases_url":"https://api.github.com/repos/inducer/pycuda/releases{/id}","deployments_url":"https://api.github.com/repos/inducer/pycuda/deployments","created_at":"2011-04-06T02:53:31Z","updated_at":"2016-02-23T04:01:37Z","pushed_at":"2016-02-15T14:43:07Z","git_url":"git://github.com/inducer/pycuda.git","ssh_url":"git@github.com:inducer/pycuda.git","clone_url":"https://github.com/inducer/pycuda.git","svn_url":"https://github.com/inducer/pycuda","homepage":"http://mathema.tician.de/software/pycuda","size":3075,"stargazers_count":241,"watchers_count":241,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":16,"forks":65,"open_issues":16,"watchers":241,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inducer/pycuda/pulls/102"},"html":{"href":"https://github.com/inducer/pycuda/pull/102"},"issue":{"href":"https://api.github.com/repos/inducer/pycuda/issues/102"},"comments":{"href":"https://api.github.com/repos/inducer/pycuda/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/inducer/pycuda/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/inducer/pycuda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inducer/pycuda/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/inducer/pycuda/statuses/79ebeb1104b8e61fc67e4f0c781ad354a4451e63"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":29,"deletions":4,"changed_files":2}}