You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I import open3d, subprocess can't use cuda
while without import open3d, it runs
Steps to reproduce the bug
importtorchfromtorch.multiprocessingimportProcessimportopen3d# without this, cuda both available in main process and subprocessclassMyProcess(Process):
def__init__(self):
super(MyProcess, self).__init__()
defrun(self):
print('subprocess:', torch.cuda.is_available())
if__name__=='__main__':
p=MyProcess()
p.start()
print('mainprocess:', torch.cuda.is_available())
Error message
mainprocess: True
/root/miniconda3/envs/dp3/lib/python3.8/site-packages/torch/cuda/init.py:128: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /opt/conda/conda-bld/pytorch_1724789115405/work/c10/cuda/CUDAFunctions.cpp:108.)
return torch._C._cuda_getDeviceCount() > 0
subprocess: False
Expected behavior
mainprocess: True
subprocess: True
Open3D, Python and System information
- Operating system: Ubuntu 20.04
- Python version: Python 3.8.20
- Open3D version: output from python: 0.18.0
- System architecture: x86
- Is this a remote workstation?: yes
- How did you install Open3D?: both tried on conda & build from source
- Compiler version (if built from source): gcc 9.4.0
Additional information
pytorch: 2.4.1
NVIDIA-SMI 550.107.02
Driver Version: 550.107.02
CUDA Version: 12.4
The text was updated successfully, but these errors were encountered:
Checklist
main
branch).Describe the issue
when I import open3d, subprocess can't use cuda
while without import open3d, it runs
Steps to reproduce the bug
Error message
mainprocess: True
/root/miniconda3/envs/dp3/lib/python3.8/site-packages/torch/cuda/init.py:128: UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at /opt/conda/conda-bld/pytorch_1724789115405/work/c10/cuda/CUDAFunctions.cpp:108.)
return torch._C._cuda_getDeviceCount() > 0
subprocess: False
Expected behavior
mainprocess: True
subprocess: True
Open3D, Python and System information
Additional information
pytorch: 2.4.1
NVIDIA-SMI 550.107.02
Driver Version: 550.107.02
CUDA Version: 12.4
The text was updated successfully, but these errors were encountered: