File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,11 @@ cdef class _BufferData:
123
123
if isinstance (ary_syclobj, dpctl.SyclQueue):
124
124
buf.queue = < SyclQueue> ary_syclobj
125
125
else :
126
- # FIXME: need a way to construct a queue from
127
- # context and device, which can be obtaine from the
128
- # pointer and the context.
129
- #
130
- # cdef SyclQueue new_queue = SyclQueue._create_from_dev_context(dev, <SyclContext> ary_syclobj)
131
- # buf.queue = new_queue
126
+ # Obtain device from pointer and context
132
127
ctx = < SyclContext> ary_syclobj
133
128
dev = Memory.get_pointer_device(buf.p, ctx)
129
+ # Use context and device to create a queue to
130
+ # be able to copy memory
134
131
buf.queue = SyclQueue._create_from_context_and_device(ctx, dev)
135
132
136
133
return buf
You can’t perform that action at this time.
0 commit comments