READ icon indicating copy to clipboard operation
READ copied to clipboard

File "/READ/gl/render.py", line 31, in _init_buffers raise RuntimeError('PyCUDA init failed, cannot use torch buffer') RuntimeError: PyCUDA init failed, cannot use torch buffer

Open rockywind opened this issue 2 years ago • 11 comments

Hi, When I follow the install guide, I met the error below. I run 'python viewer.py --config downloads/kitti6.yaml' in Mobaxtem.

READ_02$ python viewer_debug.py
loading pointcloud...
no normals in /READ/Data/image_kitti6_all_368/pointcloud.ply
=== 3D model ===
VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
[w] Cannot read STENCIL size from the framebuffer
[i] Using GLFW (GL 3.0)
Traceback (most recent call last):
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 29, in _init_buffers
    import pycuda.gl.autoinit  # this may fails in headless mode
  File "/anaconda3/envs/Oflow/lib/python3.7/site-packages/pycuda-2022.2-py3.7-linux-x86_64.egg/pycuda/g                                           l/autoinit.py", line 10, in <module>
    context = make_default_context(lambda dev: cudagl.make_context(dev))
  File "anaconda3/envs/Oflow/lib/python3.7/site-packages/pycuda-2022.2-py3.7-linux-x86_64.egg/pycuda/t                                           ools.py", line 228, in make_default_context
    "on any of the %d detected devices" % ndevices
RuntimeError: make_default_context() wasn't able to create a context on any of the 1 detected devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "viewer_debug.py", line 555, in <module>
    my_app = MyApp(args)
  File "viewer_debug.py", line 187, in __init__
    clear_color=args.clear_color)
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 19, in __init__
    self._init_buffers(viewport_size, out_buffer_location)
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 31, in _init_buffers
    raise RuntimeError('PyCUDA init failed, cannot use torch buffer')
RuntimeError: PyCUDA init failed, cannot use torch buffer

rockywind avatar Dec 19 '22 07:12 rockywind