Repository navigation
Update/dpctl memcpy async - #529
Conversation
| - cython | ||
| - numba 0.54* | ||
| - dpctl >=0.9* | ||
| - dpctl >=0.9.1.dev* |
There was a problem hiding this comment.
This will presently make it break, since no such package is yet available on the channels.
There was a problem hiding this comment.
@oleksandr-pavlyk
If API changed then dpctl version should be 0.10.0 (dev0).
0.9.1 is a patch version.
Right?
There was a problem hiding this comment.
To play nice with multi-versioning on Linux - yes.
There was a problem hiding this comment.
| - dpctl >=0.9.1.dev* | |
| - dpctl >=0.10.0* |
|
|
||
| b_usm = dpctl_functions.malloc_shared(b.size * b.itemsize, sycl_queue) | ||
| dpctl_functions.queue_memcpy(sycl_queue, b_usm, b.ctypes, b.size * b.itemsize) | ||
| event = dpctl_functions.queue_memcpy( |
There was a problem hiding this comment.
Wouldn't it be better to create a function:
def synchronous_memcpy(q, dst, src, size):
event = dpctl_functions.queue_memcpy(q, dst, src, size)
dpctl_functions.event_wait(event)
dpctl_functions.event_delete(event)and use it throughout, perhaps even in dpctl_functions module?
There was a problem hiding this comment.
About dpctl API I would like to propose to try to avoid breaking changes:
def queue_memcpy(..., wait=True):
...
if (wait):
dpctl_functions.event_wait(event)
dpctl_functions.event_delete(event)
return None
return event
def queue_memcpy_async(...):
return queue_memcpy(..., wait=False)| - python | ||
| - numba 0.54* | ||
| - dpctl >=0.9* | ||
| - dpctl >=0.9.1.dev* |
There was a problem hiding this comment.
@reazulhoque It is not necessary to use dev here. Just >=0.9.1*
| - dpctl >=0.9.1.dev* | |
| - dpctl >=0.9.1* |
There was a problem hiding this comment.
| - dpctl >=0.9.1.dev* | |
| - dpctl >=0.10.0* |
|
Waiting for dpctl 0.10.0dev0 upload to channels. |
PokhodenkoSA
left a comment
There was a problem hiding this comment.
I think we can merge it.
This updates API changes in dpctl for memcpy. IntelPython/dpctl#557