Open SlInevitable2003 opened 1 month ago
I have run into the same issue previously. I'm not sure exactly what is causing this problem though. Do you have multiple CUDA devices available on your system?
I have run into the same issue previously. I'm not sure exactly what is causing this problem though. Do you have multiple CUDA devices available on your system?
No, my computer only has one GPU. Is that the key reason?
I actually saw that someone else had a similar issue #322 . It seems that it has to do with how GPU support was implemented and tested. However this issue is old, from around 2021 or so. They might have fixed it by this point, but I haven't been able to get CUDA working with the run_multiprocess tag either. I'm running CrypTen in a Conda environment, but I don't know if that's really the issue.
I actually saw that someone else had a similar issue #322 . It seems that it has to do with how GPU support was implemented and tested. However this issue is old, from around 2021 or so. They might have fixed it by this point, but I haven't been able to get CUDA working with the run_multiprocess tag either. I'm running CrypTen in a Conda environment, but I don't know if that's really the issue.
Thanks a lot! I will check that issue carefully.
After looking at issue #305 , it seems like someone else was able to get the MPC cifar experiment to run correctly on the GPU, and the bug which caused the issue has already been fixed. For some reason, these fixes don't extend to the @mpc.run_multiprocess() decorator though. I'm gonna try using this as well to get my code to run on the GPU.
I have install the requirements as instructions and I can successfully execute Tutorial 1, which may indicates that the basic dependency have been installed. However tutorial 2 can not work correctly for me. When executing
I get the following error:
It seems that the error is caused by initializing CUDA in multiple processes. Please help me with that!