{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/01org/pyMIC/pulls/8","id":70046416,"html_url":"https://github.com/01org/pyMIC/pull/8","diff_url":"https://github.com/01org/pyMIC/pull/8.diff","patch_url":"https://github.com/01org/pyMIC/pull/8.patch","issue_url":"https://api.github.com/repos/01org/pyMIC/issues/8","number":8,"state":"open","locked":false,"title":"Fixing error when dtype float32 numpy array is passed as kernel arg.","user":{"login":"felippezacarias","id":10052438,"avatar_url":"https://avatars.githubusercontent.com/u/10052438?v=3","gravatar_id":"","url":"https://api.github.com/users/felippezacarias","html_url":"https://github.com/felippezacarias","followers_url":"https://api.github.com/users/felippezacarias/followers","following_url":"https://api.github.com/users/felippezacarias/following{/other_user}","gists_url":"https://api.github.com/users/felippezacarias/gists{/gist_id}","starred_url":"https://api.github.com/users/felippezacarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felippezacarias/subscriptions","organizations_url":"https://api.github.com/users/felippezacarias/orgs","repos_url":"https://api.github.com/users/felippezacarias/repos","events_url":"https://api.github.com/users/felippezacarias/events{/privacy}","received_events_url":"https://api.github.com/users/felippezacarias/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nWhen I integrated pyMIC with one project I'm working on, I noticed the error below is thrown when I tried to pass a numpy array of float32 as an arg. \r\n\r\n  File \"double_float.py\", line 52, in <module>\r\n    stream.invoke(library.doubleit_kernel, a, a.size)\r\n  File \"/scratch/felippe.vieira/pyMIC/build/lib.linux-x86_64-2.7/pymic/_tracing.py\", line 128, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/scratch/felippe.vieira/pyMIC/build/lib.linux-x86_64-2.7/pymic/offload_stream.py\", line 587, in invoke\r\n    arg_type[i] = map_data_types(a.dtype)\r\n  File \"/scratch/felippe.vieira/pyMIC/build/lib.linux-x86_64-2.7/pymic/_misc.py\", line 127, in _map_data_types\r\n    return _data_type_map[dtype]\r\nKeyError: dtype('float32')\r\n\r\nThe pull request add an example that reproduces the error on the current master branch and implements the commit that fix this issue.","created_at":"2016-05-13T19:29:56Z","updated_at":"2016-05-13T19:29:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/01org/pyMIC/pulls/8/commits","review_comments_url":"https://api.github.com/repos/01org/pyMIC/pulls/8/comments","review_comment_url":"https://api.github.com/repos/01org/pyMIC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/01org/pyMIC/issues/8/comments","statuses_url":"https://api.github.com/repos/01org/pyMIC/statuses/b81bf9ff5e91668bb329a444888f5210e3e68f9b","head":{"label":"felippezacarias:master","ref":"master","sha":"b81bf9ff5e91668bb329a444888f5210e3e68f9b","user":{"login":"felippezacarias","id":10052438,"avatar_url":"https://avatars.githubusercontent.com/u/10052438?v=3","gravatar_id":"","url":"https://api.github.com/users/felippezacarias","html_url":"https://github.com/felippezacarias","followers_url":"https://api.github.com/users/felippezacarias/followers","following_url":"https://api.github.com/users/felippezacarias/following{/other_user}","gists_url":"https://api.github.com/users/felippezacarias/gists{/gist_id}","starred_url":"https://api.github.com/users/felippezacarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felippezacarias/subscriptions","organizations_url":"https://api.github.com/users/felippezacarias/orgs","repos_url":"https://api.github.com/users/felippezacarias/repos","events_url":"https://api.github.com/users/felippezacarias/events{/privacy}","received_events_url":"https://api.github.com/users/felippezacarias/received_events","type":"User","site_admin":false},"repo":{"id":58760500,"name":"pyMIC","full_name":"felippezacarias/pyMIC","owner":{"login":"felippezacarias","id":10052438,"avatar_url":"https://avatars.githubusercontent.com/u/10052438?v=3","gravatar_id":"","url":"https://api.github.com/users/felippezacarias","html_url":"https://github.com/felippezacarias","followers_url":"https://api.github.com/users/felippezacarias/followers","following_url":"https://api.github.com/users/felippezacarias/following{/other_user}","gists_url":"https://api.github.com/users/felippezacarias/gists{/gist_id}","starred_url":"https://api.github.com/users/felippezacarias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felippezacarias/subscriptions","organizations_url":"https://api.github.com/users/felippezacarias/orgs","repos_url":"https://api.github.com/users/felippezacarias/repos","events_url":"https://api.github.com/users/felippezacarias/events{/privacy}","received_events_url":"https://api.github.com/users/felippezacarias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felippezacarias/pyMIC","description":"","fork":true,"url":"https://api.github.com/repos/felippezacarias/pyMIC","forks_url":"https://api.github.com/repos/felippezacarias/pyMIC/forks","keys_url":"https://api.github.com/repos/felippezacarias/pyMIC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felippezacarias/pyMIC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felippezacarias/pyMIC/teams","hooks_url":"https://api.github.com/repos/felippezacarias/pyMIC/hooks","issue_events_url":"https://api.github.com/repos/felippezacarias/pyMIC/issues/events{/number}","events_url":"https://api.github.com/repos/felippezacarias/pyMIC/events","assignees_url":"https://api.github.com/repos/felippezacarias/pyMIC/assignees{/user}","branches_url":"https://api.github.com/repos/felippezacarias/pyMIC/branches{/branch}","tags_url":"https://api.github.com/repos/felippezacarias/pyMIC/tags","blobs_url":"https://api.github.com/repos/felippezacarias/pyMIC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felippezacarias/pyMIC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felippezacarias/pyMIC/git/refs{/sha}","trees_url":"https://api.github.com/repos/felippezacarias/pyMIC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felippezacarias/pyMIC/statuses/{sha}","languages_url":"https://api.github.com/repos/felippezacarias/pyMIC/languages","stargazers_url":"https://api.github.com/repos/felippezacarias/pyMIC/stargazers","contributors_url":"https://api.github.com/repos/felippezacarias/pyMIC/contributors","subscribers_url":"https://api.github.com/repos/felippezacarias/pyMIC/subscribers","subscription_url":"https://api.github.com/repos/felippezacarias/pyMIC/subscription","commits_url":"https://api.github.com/repos/felippezacarias/pyMIC/commits{/sha}","git_commits_url":"https://api.github.com/repos/felippezacarias/pyMIC/git/commits{/sha}","comments_url":"https://api.github.com/repos/felippezacarias/pyMIC/comments{/number}","issue_comment_url":"https://api.github.com/repos/felippezacarias/pyMIC/issues/comments{/number}","contents_url":"https://api.github.com/repos/felippezacarias/pyMIC/contents/{+path}","compare_url":"https://api.github.com/repos/felippezacarias/pyMIC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felippezacarias/pyMIC/merges","archive_url":"https://api.github.com/repos/felippezacarias/pyMIC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felippezacarias/pyMIC/downloads","issues_url":"https://api.github.com/repos/felippezacarias/pyMIC/issues{/number}","pulls_url":"https://api.github.com/repos/felippezacarias/pyMIC/pulls{/number}","milestones_url":"https://api.github.com/repos/felippezacarias/pyMIC/milestones{/number}","notifications_url":"https://api.github.com/repos/felippezacarias/pyMIC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felippezacarias/pyMIC/labels{/name}","releases_url":"https://api.github.com/repos/felippezacarias/pyMIC/releases{/id}","deployments_url":"https://api.github.com/repos/felippezacarias/pyMIC/deployments","created_at":"2016-05-13T17:41:50Z","updated_at":"2016-05-13T17:41:51Z","pushed_at":"2016-05-13T19:10:52Z","git_url":"git://github.com/felippezacarias/pyMIC.git","ssh_url":"git@github.com:felippezacarias/pyMIC.git","clone_url":"https://github.com/felippezacarias/pyMIC.git","svn_url":"https://github.com/felippezacarias/pyMIC","homepage":null,"size":925,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"01org:master","ref":"master","sha":"6ad4b741c2f696b6eca02f39b69c404af9c438d1","user":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"repo":{"id":26036045,"name":"pyMIC","full_name":"01org/pyMIC","owner":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/01org/pyMIC","description":"","fork":false,"url":"https://api.github.com/repos/01org/pyMIC","forks_url":"https://api.github.com/repos/01org/pyMIC/forks","keys_url":"https://api.github.com/repos/01org/pyMIC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01org/pyMIC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01org/pyMIC/teams","hooks_url":"https://api.github.com/repos/01org/pyMIC/hooks","issue_events_url":"https://api.github.com/repos/01org/pyMIC/issues/events{/number}","events_url":"https://api.github.com/repos/01org/pyMIC/events","assignees_url":"https://api.github.com/repos/01org/pyMIC/assignees{/user}","branches_url":"https://api.github.com/repos/01org/pyMIC/branches{/branch}","tags_url":"https://api.github.com/repos/01org/pyMIC/tags","blobs_url":"https://api.github.com/repos/01org/pyMIC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01org/pyMIC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01org/pyMIC/git/refs{/sha}","trees_url":"https://api.github.com/repos/01org/pyMIC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01org/pyMIC/statuses/{sha}","languages_url":"https://api.github.com/repos/01org/pyMIC/languages","stargazers_url":"https://api.github.com/repos/01org/pyMIC/stargazers","contributors_url":"https://api.github.com/repos/01org/pyMIC/contributors","subscribers_url":"https://api.github.com/repos/01org/pyMIC/subscribers","subscription_url":"https://api.github.com/repos/01org/pyMIC/subscription","commits_url":"https://api.github.com/repos/01org/pyMIC/commits{/sha}","git_commits_url":"https://api.github.com/repos/01org/pyMIC/git/commits{/sha}","comments_url":"https://api.github.com/repos/01org/pyMIC/comments{/number}","issue_comment_url":"https://api.github.com/repos/01org/pyMIC/issues/comments{/number}","contents_url":"https://api.github.com/repos/01org/pyMIC/contents/{+path}","compare_url":"https://api.github.com/repos/01org/pyMIC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01org/pyMIC/merges","archive_url":"https://api.github.com/repos/01org/pyMIC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01org/pyMIC/downloads","issues_url":"https://api.github.com/repos/01org/pyMIC/issues{/number}","pulls_url":"https://api.github.com/repos/01org/pyMIC/pulls{/number}","milestones_url":"https://api.github.com/repos/01org/pyMIC/milestones{/number}","notifications_url":"https://api.github.com/repos/01org/pyMIC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01org/pyMIC/labels{/name}","releases_url":"https://api.github.com/repos/01org/pyMIC/releases{/id}","deployments_url":"https://api.github.com/repos/01org/pyMIC/deployments","created_at":"2014-10-31T23:04:08Z","updated_at":"2016-02-19T08:24:48Z","pushed_at":"2016-05-13T19:29:56Z","git_url":"git://github.com/01org/pyMIC.git","ssh_url":"git@github.com:01org/pyMIC.git","clone_url":"https://github.com/01org/pyMIC.git","svn_url":"https://github.com/01org/pyMIC","homepage":null,"size":923,"stargazers_count":27,"watchers_count":27,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/01org/pyMIC/pulls/8"},"html":{"href":"https://github.com/01org/pyMIC/pull/8"},"issue":{"href":"https://api.github.com/repos/01org/pyMIC/issues/8"},"comments":{"href":"https://api.github.com/repos/01org/pyMIC/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/01org/pyMIC/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/01org/pyMIC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/01org/pyMIC/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/01org/pyMIC/statuses/b81bf9ff5e91668bb329a444888f5210e3e68f9b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":287,"deletions":10,"changed_files":7}}