ThrustRTC
ThrustRTC copied to clipboard
About mutliprocess
Hi, i have create a class which use to sample graph node, the code include ThrusrRTC and CURandRTC. When i put it in multiprocessing.spawn(func, args=('myclass')), I got error.
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_cffi_backend._CDataBase' object
I have write demo in https://github.com/zsy0828/trtc_question.
If you have spare time, could you tell me how to let it work in multiprocess, thank a lot
This seems to be a cffi issue. I don't see how I can fix it from ThrustRTC side. Btw, there's little benifit to multiprocess a GPU program, if any.