Skip to content
Discussion options

You must be logged in to vote

@oleksandr-pavlyk As expected, running a kernel with a default compiled dpctl as-is will not work:

>>>a=dpt.arange(30, device=dev); b=dpt.roll(dpt.concat((dpt.ones(15, dtype=dpt.bool, device=dev), dpt.zeros(15, dtype=dpt.bool, device=dev))), 8); c=a[b]
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/home/diptorupd/Desktop/devel/dpctl/dpctl/tensor/_ctors.py", line642, inarangehev, _=ti._linspace_step(_start, _step, res, sycl_queue)
RuntimeError: NativeAPIfailed. NativeAPIreturns: -42 (PI_ERROR_INVALID_BINARY) -42 (PI_ERROR_INVALID_BINARY)

However, after the following small patch

Author: Diptorup Deb <diptorup.deb@intel.com> 2023-03-14 …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@diptorupd
Comment options

@ogrisel
Comment options

Answer selected bydiptorupd
Comment options

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants
@diptorupd@ogrisel@oleksandr-pavlyk