torch.utils.data.Dataset combined with pycuda issue #350
Unanswered
wuzuowuyou
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
This comment contained all the advice you should need: pytorch/pytorch#74014 (comment) Multiprocessing creates subprocesses. You need to intialize cuda in those. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you for your reply. I have updated my comments here. Please have a look |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
when num_workers=0,everything is ok , but num_workers>0, error.
I went to pytorch and asked. They said it was the problem of pycuda multithreading initialization, but I didn't know how to solve it
pytorch/pytorch#74014
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
appdirs 1.4.4
certifi 2021.10.8
distro 1.6.0
imageio 2.16.0
lmdb 1.3.0
Mako 1.1.6
MarkupSafe 2.1.0
mkl-fft 1.3.1
mkl-random 1.2.2
mkl-service 2.4.0
networkx 2.6.3
numpy 1.21.2
olefile 0.46
opencv-python 3.4.6.27
packaging 21.3
Pillow 8.4.0
pip 21.2.2
platformdirs 2.5.1
protobuf 3.19.4
pycuda 2021.1
pyparsing 3.0.7
pytools 2022.1
PyWavelets 1.2.0
scikit-build 0.13.1
scikit-image 0.19.2
scipy 1.7.3
setuptools 58.0.4
six 1.16.0
tifffile 2021.11.2
torch 1.7.0
torchaudio 0.7.0a0+ac17b64
torchvision 0.8.0
typing-extensions 3.10.0.2
wheel 0.37.1
Additional context
Looking forward to your reply, thank you very much
Beta Was this translation helpful? Give feedback.
All reactions