{"action":"created","issue":{"url":"https://api.github.com/repos/inducer/pycuda/issues/82","labels_url":"https://api.github.com/repos/inducer/pycuda/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/inducer/pycuda/issues/82/comments","events_url":"https://api.github.com/repos/inducer/pycuda/issues/82/events","html_url":"https://github.com/inducer/pycuda/pull/82","id":98944649,"number":82,"title":"register_host_memory corrected to pin the array length in bytes, rather than elements","user":{"login":"sjperkins","id":3530212,"avatar_url":"https://avatars.githubusercontent.com/u/3530212?v=3","gravatar_id":"","url":"https://api.github.com/users/sjperkins","html_url":"https://github.com/sjperkins","followers_url":"https://api.github.com/users/sjperkins/followers","following_url":"https://api.github.com/users/sjperkins/following{/other_user}","gists_url":"https://api.github.com/users/sjperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjperkins/subscriptions","organizations_url":"https://api.github.com/users/sjperkins/orgs","repos_url":"https://api.github.com/users/sjperkins/repos","events_url":"https://api.github.com/users/sjperkins/events{/privacy}","received_events_url":"https://api.github.com/users/sjperkins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-04T11:13:40Z","updated_at":"2015-08-05T16:09:39Z","closed_at":"2015-08-04T13:55:41Z","pull_request":{"url":"https://api.github.com/repos/inducer/pycuda/pulls/82","html_url":"https://github.com/inducer/pycuda/pull/82","diff_url":"https://github.com/inducer/pycuda/pull/82.diff","patch_url":"https://github.com/inducer/pycuda/pull/82.patch"},"body":"Replaced PyArray_SIZE(ary) with PyArray_NBYTES(ary).\r\n\r\npycuda.driver.register_host_memory() was passing\r\nthe size of the array in elements, rather than\r\nthe length of the array in bytes when\r\ncreating a register_host_memory class.\r\nThis resulted in \"Invalid Argument\" errors\r\nwhen calling asynchronous memory copies on\r\nthe entire array.\r\n\r\nThis solves the issues in #46."},"comment":{"url":"https://api.github.com/repos/inducer/pycuda/issues/comments/128052927","html_url":"https://github.com/inducer/pycuda/pull/82#issuecomment-128052927","issue_url":"https://api.github.com/repos/inducer/pycuda/issues/82","id":128052927,"user":{"login":"sjperkins","id":3530212,"avatar_url":"https://avatars.githubusercontent.com/u/3530212?v=3","gravatar_id":"","url":"https://api.github.com/users/sjperkins","html_url":"https://github.com/sjperkins","followers_url":"https://api.github.com/users/sjperkins/followers","following_url":"https://api.github.com/users/sjperkins/following{/other_user}","gists_url":"https://api.github.com/users/sjperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjperkins/subscriptions","organizations_url":"https://api.github.com/users/sjperkins/orgs","repos_url":"https://api.github.com/users/sjperkins/repos","events_url":"https://api.github.com/users/sjperkins/events{/privacy}","received_events_url":"https://api.github.com/users/sjperkins/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T16:09:39Z","updated_at":"2015-08-05T16:09:39Z","body":"Thank you kindly!"}}