File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,12 @@ cdef class _BufferData:
121
121
if isinstance (ary_syclobj, dpctl.SyclQueue):
122
122
buf.queue = < SyclQueue> ary_syclobj
123
123
else :
124
- # FIXME: need a way to construct a queue from
124
+ # FIXME: need a way to construct a queue from
125
+ # context and device, which can be obtaine from the
126
+ # pointer and the context.
127
+ # cdef SyclDevice dev = DPPLget_pointer_device(arr_data_ptr, <SyclContext> ary_syclobj)
128
+ # cdef SyclQueue new_queue = SyclQueue._create_from_dev_context(dev, <SyclContext> ary_syclobj)
129
+ # buf.queue = new_queue
125
130
buf.queue = get_current_queue()
126
131
127
132
return buf
Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ def test_pickling(self):
138
138
self .assertEqual (
139
139
mobj .tobytes (),
140
140
mobj_reconstructed .tobytes (),
141
- "Pickling should preserve buffer content"
141
+ "Pickling should preserve buffer content" ,
142
142
)
143
143
self .assertNotEqual (
144
144
mobj ._pointer ,
145
145
mobj_reconstructed ._pointer ,
146
- "Pickling/unpickling changes pointer"
146
+ "Pickling/unpickling changes pointer" ,
147
147
)
148
148
149
149
You can’t perform that action at this time.
0 commit comments