{"action":"created","comment":{"url":"https://api.github.com/repos/pypr/pysph/pulls/comments/199620886","pull_request_review_id":133772259,"id":199620886,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTYyMDg4Ng==","diff_hunk":"@@ -48,6 +52,91 @@ def get_elwise_kernel(kernel_name, args, src, preamble=\"\"):\n     return profile_kernel(knl, kernel_name)\n \n \n+def get_simple_kernel(kernel_name, args, src, wgs, preamble=\"\"):\n+    ctx = get_context()\n+    knl = SimpleKernel(\n+        ctx, args, src, wgs,\n+        kernel_name, preamble=preamble\n+    )\n+\n+    return profile_kernel(knl, kernel_name)\n+\n+\n+class SimpleKernel(object):","path":"pysph/base/opencl.py","position":25,"original_position":25,"commit_id":"11bebe62e4a2fda397d9dd16887d629a54bfc620","original_commit_id":"11bebe62e4a2fda397d9dd16887d629a54bfc620","user":{"login":"prabhuramachandran","id":272585,"node_id":"MDQ6VXNlcjI3MjU4NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/272585?v=4","gravatar_id":"","url":"https://api.github.com/users/prabhuramachandran","html_url":"https://github.com/prabhuramachandran","followers_url":"https://api.github.com/users/prabhuramachandran/followers","following_url":"https://api.github.com/users/prabhuramachandran/following{/other_user}","gists_url":"https://api.github.com/users/prabhuramachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuramachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuramachandran/subscriptions","organizations_url":"https://api.github.com/users/prabhuramachandran/orgs","repos_url":"https://api.github.com/users/prabhuramachandran/repos","events_url":"https://api.github.com/users/prabhuramachandran/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuramachandran/received_events","type":"User","site_admin":false},"body":"Should this be contributed upstream to pyopencl?","created_at":"2018-07-02T21:05:40Z","updated_at":"2018-07-02T21:34:32Z","html_url":"https://github.com/pypr/pysph/pull/105#discussion_r199620886","pull_request_url":"https://api.github.com/repos/pypr/pysph/pulls/105","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pypr/pysph/pulls/comments/199620886"},"html":{"href":"https://github.com/pypr/pysph/pull/105#discussion_r199620886"},"pull_request":{"href":"https://api.github.com/repos/pypr/pysph/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/pypr/pysph/pulls/105","id":193697288,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNjk3Mjg4","html_url":"https://github.com/pypr/pysph/pull/105","diff_url":"https://github.com/pypr/pysph/pull/105.diff","patch_url":"https://github.com/pypr/pysph/pull/105.patch","issue_url":"https://api.github.com/repos/pypr/pysph/issues/105","number":105,"state":"open","locked":false,"title":"GPU-based octrees, NNPS using octrees and additional NNPS tests","user":{"login":"rahulgovind","id":10906241,"node_id":"MDQ6VXNlcjEwOTA2MjQx","avatar_url":"https://avatars1.githubusercontent.com/u/10906241?v=4","gravatar_id":"","url":"https://api.github.com/users/rahulgovind","html_url":"https://github.com/rahulgovind","followers_url":"https://api.github.com/users/rahulgovind/followers","following_url":"https://api.github.com/users/rahulgovind/following{/other_user}","gists_url":"https://api.github.com/users/rahulgovind/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulgovind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulgovind/subscriptions","organizations_url":"https://api.github.com/users/rahulgovind/orgs","repos_url":"https://api.github.com/users/rahulgovind/repos","events_url":"https://api.github.com/users/rahulgovind/events{/privacy}","received_events_url":"https://api.github.com/users/rahulgovind/received_events","type":"User","site_admin":false},"body":"Example usage:\r\n`pysph run cube --opencl --nnps gpu_octree --octree-leaf-size 32`","created_at":"2018-06-08T18:59:58Z","updated_at":"2018-07-02T21:34:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"032abee32942059cd23827366f9f2205d3128b57","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pypr/pysph/pulls/105/commits","review_comments_url":"https://api.github.com/repos/pypr/pysph/pulls/105/comments","review_comment_url":"https://api.github.com/repos/pypr/pysph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pypr/pysph/issues/105/comments","statuses_url":"https://api.github.com/repos/pypr/pysph/statuses/11bebe62e4a2fda397d9dd16887d629a54bfc620","head":{"label":"rahulgovind:octree_pr","ref":"octree_pr","sha":"11bebe62e4a2fda397d9dd16887d629a54bfc620","user":{"login":"rahulgovind","id":10906241,"node_id":"MDQ6VXNlcjEwOTA2MjQx","avatar_url":"https://avatars1.githubusercontent.com/u/10906241?v=4","gravatar_id":"","url":"https://api.github.com/users/rahulgovind","html_url":"https://github.com/rahulgovind","followers_url":"https://api.github.com/users/rahulgovind/followers","following_url":"https://api.github.com/users/rahulgovind/following{/other_user}","gists_url":"https://api.github.com/users/rahulgovind/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulgovind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulgovind/subscriptions","organizations_url":"https://api.github.com/users/rahulgovind/orgs","repos_url":"https://api.github.com/users/rahulgovind/repos","events_url":"https://api.github.com/users/rahulgovind/events{/privacy}","received_events_url":"https://api.github.com/users/rahulgovind/received_events","type":"User","site_admin":false},"repo":{"id":98012389,"node_id":"MDEwOlJlcG9zaXRvcnk5ODAxMjM4OQ==","name":"pysph","full_name":"rahulgovind/pysph","owner":{"login":"rahulgovind","id":10906241,"node_id":"MDQ6VXNlcjEwOTA2MjQx","avatar_url":"https://avatars1.githubusercontent.com/u/10906241?v=4","gravatar_id":"","url":"https://api.github.com/users/rahulgovind","html_url":"https://github.com/rahulgovind","followers_url":"https://api.github.com/users/rahulgovind/followers","following_url":"https://api.github.com/users/rahulgovind/following{/other_user}","gists_url":"https://api.github.com/users/rahulgovind/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulgovind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulgovind/subscriptions","organizations_url":"https://api.github.com/users/rahulgovind/orgs","repos_url":"https://api.github.com/users/rahulgovind/repos","events_url":"https://api.github.com/users/rahulgovind/events{/privacy}","received_events_url":"https://api.github.com/users/rahulgovind/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rahulgovind/pysph","description":null,"fork":true,"url":"https://api.github.com/repos/rahulgovind/pysph","forks_url":"https://api.github.com/repos/rahulgovind/pysph/forks","keys_url":"https://api.github.com/repos/rahulgovind/pysph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rahulgovind/pysph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rahulgovind/pysph/teams","hooks_url":"https://api.github.com/repos/rahulgovind/pysph/hooks","issue_events_url":"https://api.github.com/repos/rahulgovind/pysph/issues/events{/number}","events_url":"https://api.github.com/repos/rahulgovind/pysph/events","assignees_url":"https://api.github.com/repos/rahulgovind/pysph/assignees{/user}","branches_url":"https://api.github.com/repos/rahulgovind/pysph/branches{/branch}","tags_url":"https://api.github.com/repos/rahulgovind/pysph/tags","blobs_url":"https://api.github.com/repos/rahulgovind/pysph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rahulgovind/pysph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rahulgovind/pysph/git/refs{/sha}","trees_url":"https://api.github.com/repos/rahulgovind/pysph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rahulgovind/pysph/statuses/{sha}","languages_url":"https://api.github.com/repos/rahulgovind/pysph/languages","stargazers_url":"https://api.github.com/repos/rahulgovind/pysph/stargazers","contributors_url":"https://api.github.com/repos/rahulgovind/pysph/contributors","subscribers_url":"https://api.github.com/repos/rahulgovind/pysph/subscribers","subscription_url":"https://api.github.com/repos/rahulgovind/pysph/subscription","commits_url":"https://api.github.com/repos/rahulgovind/pysph/commits{/sha}","git_commits_url":"https://api.github.com/repos/rahulgovind/pysph/git/commits{/sha}","comments_url":"https://api.github.com/repos/rahulgovind/pysph/comments{/number}","issue_comment_url":"https://api.github.com/repos/rahulgovind/pysph/issues/comments{/number}","contents_url":"https://api.github.com/repos/rahulgovind/pysph/contents/{+path}","compare_url":"https://api.github.com/repos/rahulgovind/pysph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rahulgovind/pysph/merges","archive_url":"https://api.github.com/repos/rahulgovind/pysph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rahulgovind/pysph/downloads","issues_url":"https://api.github.com/repos/rahulgovind/pysph/issues{/number}","pulls_url":"https://api.github.com/repos/rahulgovind/pysph/pulls{/number}","milestones_url":"https://api.github.com/repos/rahulgovind/pysph/milestones{/number}","notifications_url":"https://api.github.com/repos/rahulgovind/pysph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rahulgovind/pysph/labels{/name}","releases_url":"https://api.github.com/repos/rahulgovind/pysph/releases{/id}","deployments_url":"https://api.github.com/repos/rahulgovind/pysph/deployments","created_at":"2017-07-22T06:39:09Z","updated_at":"2017-07-22T06:39:11Z","pushed_at":"2018-06-17T15:48:41Z","git_url":"git://github.com/rahulgovind/pysph.git","ssh_url":"git@github.com:rahulgovind/pysph.git","clone_url":"https://github.com/rahulgovind/pysph.git","svn_url":"https://github.com/rahulgovind/pysph","homepage":null,"size":5284,"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":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pypr:master","ref":"master","sha":"ef590784279ec752688df44243d517d780382c99","user":{"login":"pypr","id":13086867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDg2ODY3","avatar_url":"https://avatars3.githubusercontent.com/u/13086867?v=4","gravatar_id":"","url":"https://api.github.com/users/pypr","html_url":"https://github.com/pypr","followers_url":"https://api.github.com/users/pypr/followers","following_url":"https://api.github.com/users/pypr/following{/other_user}","gists_url":"https://api.github.com/users/pypr/gists{/gist_id}","starred_url":"https://api.github.com/users/pypr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypr/subscriptions","organizations_url":"https://api.github.com/users/pypr/orgs","repos_url":"https://api.github.com/users/pypr/repos","events_url":"https://api.github.com/users/pypr/events{/privacy}","received_events_url":"https://api.github.com/users/pypr/received_events","type":"Organization","site_admin":false},"repo":{"id":92426682,"node_id":"MDEwOlJlcG9zaXRvcnk5MjQyNjY4Mg==","name":"pysph","full_name":"pypr/pysph","owner":{"login":"pypr","id":13086867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDg2ODY3","avatar_url":"https://avatars3.githubusercontent.com/u/13086867?v=4","gravatar_id":"","url":"https://api.github.com/users/pypr","html_url":"https://github.com/pypr","followers_url":"https://api.github.com/users/pypr/followers","following_url":"https://api.github.com/users/pypr/following{/other_user}","gists_url":"https://api.github.com/users/pypr/gists{/gist_id}","starred_url":"https://api.github.com/users/pypr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypr/subscriptions","organizations_url":"https://api.github.com/users/pypr/orgs","repos_url":"https://api.github.com/users/pypr/repos","events_url":"https://api.github.com/users/pypr/events{/privacy}","received_events_url":"https://api.github.com/users/pypr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pypr/pysph","description":"A framework for Smoothed Particle Hydrodynamics in Python","fork":false,"url":"https://api.github.com/repos/pypr/pysph","forks_url":"https://api.github.com/repos/pypr/pysph/forks","keys_url":"https://api.github.com/repos/pypr/pysph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pypr/pysph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pypr/pysph/teams","hooks_url":"https://api.github.com/repos/pypr/pysph/hooks","issue_events_url":"https://api.github.com/repos/pypr/pysph/issues/events{/number}","events_url":"https://api.github.com/repos/pypr/pysph/events","assignees_url":"https://api.github.com/repos/pypr/pysph/assignees{/user}","branches_url":"https://api.github.com/repos/pypr/pysph/branches{/branch}","tags_url":"https://api.github.com/repos/pypr/pysph/tags","blobs_url":"https://api.github.com/repos/pypr/pysph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pypr/pysph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pypr/pysph/git/refs{/sha}","trees_url":"https://api.github.com/repos/pypr/pysph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pypr/pysph/statuses/{sha}","languages_url":"https://api.github.com/repos/pypr/pysph/languages","stargazers_url":"https://api.github.com/repos/pypr/pysph/stargazers","contributors_url":"https://api.github.com/repos/pypr/pysph/contributors","subscribers_url":"https://api.github.com/repos/pypr/pysph/subscribers","subscription_url":"https://api.github.com/repos/pypr/pysph/subscription","commits_url":"https://api.github.com/repos/pypr/pysph/commits{/sha}","git_commits_url":"https://api.github.com/repos/pypr/pysph/git/commits{/sha}","comments_url":"https://api.github.com/repos/pypr/pysph/comments{/number}","issue_comment_url":"https://api.github.com/repos/pypr/pysph/issues/comments{/number}","contents_url":"https://api.github.com/repos/pypr/pysph/contents/{+path}","compare_url":"https://api.github.com/repos/pypr/pysph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pypr/pysph/merges","archive_url":"https://api.github.com/repos/pypr/pysph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pypr/pysph/downloads","issues_url":"https://api.github.com/repos/pypr/pysph/issues{/number}","pulls_url":"https://api.github.com/repos/pypr/pysph/pulls{/number}","milestones_url":"https://api.github.com/repos/pypr/pysph/milestones{/number}","notifications_url":"https://api.github.com/repos/pypr/pysph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pypr/pysph/labels{/name}","releases_url":"https://api.github.com/repos/pypr/pysph/releases{/id}","deployments_url":"https://api.github.com/repos/pypr/pysph/deployments","created_at":"2017-05-25T17:17:00Z","updated_at":"2018-06-27T09:16:40Z","pushed_at":"2018-06-29T09:28:42Z","git_url":"git://github.com/pypr/pysph.git","ssh_url":"git@github.com:pypr/pysph.git","clone_url":"https://github.com/pypr/pysph.git","svn_url":"https://github.com/pypr/pysph","homepage":"http://pysph.readthedocs.io","size":5121,"stargazers_count":56,"watchers_count":56,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":39,"open_issues":4,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pypr/pysph/pulls/105"},"html":{"href":"https://github.com/pypr/pysph/pull/105"},"issue":{"href":"https://api.github.com/repos/pypr/pysph/issues/105"},"comments":{"href":"https://api.github.com/repos/pypr/pysph/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/pypr/pysph/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/pypr/pysph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pypr/pysph/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/pypr/pysph/statuses/11bebe62e4a2fda397d9dd16887d629a54bfc620"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"prabhuramachandran"}}