{"action":"created","issue":{"url":"https://api.github.com/repos/dask/distributed/issues/3198","repository_url":"https://api.github.com/repos/dask/distributed","labels_url":"https://api.github.com/repos/dask/distributed/issues/3198/labels{/name}","comments_url":"https://api.github.com/repos/dask/distributed/issues/3198/comments","events_url":"https://api.github.com/repos/dask/distributed/issues/3198/events","html_url":"https://github.com/dask/distributed/pull/3198","id":517935215,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM2OTExNDM0","number":3198,"title":"Adding PatchedDeviceArray to drop stride attribute for cupy<7.0","user":{"login":"rjzamora","id":20461013,"node_id":"MDQ6VXNlcjIwNDYxMDEz","avatar_url":"https://avatars0.githubusercontent.com/u/20461013?v=4","gravatar_id":"","url":"https://api.github.com/users/rjzamora","html_url":"https://github.com/rjzamora","followers_url":"https://api.github.com/users/rjzamora/followers","following_url":"https://api.github.com/users/rjzamora/following{/other_user}","gists_url":"https://api.github.com/users/rjzamora/gists{/gist_id}","starred_url":"https://api.github.com/users/rjzamora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjzamora/subscriptions","organizations_url":"https://api.github.com/users/rjzamora/orgs","repos_url":"https://api.github.com/users/rjzamora/repos","events_url":"https://api.github.com/users/rjzamora/events{/privacy}","received_events_url":"https://api.github.com/users/rjzamora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-11-05T17:57:49Z","updated_at":"2019-11-05T20:23:59Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/dask/distributed/pulls/3198","html_url":"https://github.com/dask/distributed/pull/3198","diff_url":"https://github.com/dask/distributed/pull/3198.diff","patch_url":"https://github.com/dask/distributed/pull/3198.patch"},"body":"As discussed in [cudf#3236](https://github.com/rapidsai/cudf/pull/3236), cupy does not handle the case that `__cuda_array_interface__['strides'] == None`.  However, numba 0.46+ **does**.  This leads to deserialization failures in the `cupy.asarray` call with problematic numba/cupy package combinations.  \r\n\r\nTo avoid errors in `deserialize_cupy_array`  (e.g. `TypeError: zip argument #2 must support iteration`), I am just copying the approach used by @brandon-b-miller in cudf.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dask/distributed/issues/comments/550003910","html_url":"https://github.com/dask/distributed/pull/3198#issuecomment-550003910","issue_url":"https://api.github.com/repos/dask/distributed/issues/3198","id":550003910,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MDAwMzkxMA==","user":{"login":"rjzamora","id":20461013,"node_id":"MDQ6VXNlcjIwNDYxMDEz","avatar_url":"https://avatars0.githubusercontent.com/u/20461013?v=4","gravatar_id":"","url":"https://api.github.com/users/rjzamora","html_url":"https://github.com/rjzamora","followers_url":"https://api.github.com/users/rjzamora/followers","following_url":"https://api.github.com/users/rjzamora/following{/other_user}","gists_url":"https://api.github.com/users/rjzamora/gists{/gist_id}","starred_url":"https://api.github.com/users/rjzamora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjzamora/subscriptions","organizations_url":"https://api.github.com/users/rjzamora/orgs","repos_url":"https://api.github.com/users/rjzamora/repos","events_url":"https://api.github.com/users/rjzamora/events{/privacy}","received_events_url":"https://api.github.com/users/rjzamora/received_events","type":"User","site_admin":false},"created_at":"2019-11-05T20:23:59Z","updated_at":"2019-11-05T20:23:59Z","author_association":"MEMBER","body":"I started looking into testing, and I am a bit confused by the ucx-py test failure that is fixed by this PR.  The problem in that test ([test_send_recv_two_workers.py::test_send_recv_cu[cupy]](https://github.com/rapidsai/ucx-py/blob/19d5e6c89e5ff6cf42c2b28525631dc27839def4/tests/test_send_recv_two_workers.py#L221)) seems to be that the `frame` object is type `numba.cuda.cudadrv.devicearray.DeviceNDArray` (with `__cuda_array_interface__.strides == None`).  However, distributed has a different `deserialize` function for this type."}}
{"actor":{"display_login":"rjzamora"}}