ThrustRTC icon indicating copy to clipboard operation
ThrustRTC copied to clipboard

About mutliprocess

Open zsy0828 opened this issue 3 years ago • 1 comments

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

zsy0828 avatar Sep 14 '22 05:09 zsy0828

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.

fynv avatar Sep 14 '22 11:09 fynv