Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About mutliprocess #27

Open
zsy0828 opened this issue Sep 14, 2022 · 1 comment
Open

About mutliprocess #27

zsy0828 opened this issue Sep 14, 2022 · 1 comment

Comments

@zsy0828
Copy link

zsy0828 commented Sep 14, 2022

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

@fynv
Copy link
Owner

fynv commented Sep 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants