IntelPython / dpctl

Python SYCL bindings and SYCL-based Python Array API library
https://intelpython.github.io/dpctl/
Apache License 2.0
97 stars 29 forks source link

Feature request: make SyclQueue picklable #1716

Open olegkkruglov opened 1 week ago

olegkkruglov commented 1 week ago

Currently SyclQueue is not picklable. The error message is the following:

File "<stringsource>", line 2, in dpctl._sycl_queue.SyclQueue.__reduce_cython__
TypeError: no default __reduce__ due to non-trivial __cinit__

The queue is used for dispatching in scikit-learn-intelex and the fact that it is unpickleable prevents classes with SyclQueue type attribute from being pickleable.