安装bumblebee后运行optirun glxgears 出错


#1

如题,按照https://en.opensuse.org/SDB:NVIDIA_Bumblebee安装bumblebee后,运行

optirun glxgears --info

出现错误:

failed to create drawable
[VGL] ERROR: in OGLDrawable--
[VGL]    82: Could not create Pbuffer

但是optirun可以运行程序。
安装bumblebee的cuda9.0后运行了一个使用GPU的demo,提示无法找到cuda devices,报错如下:

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1535493744281/work/aten/src/THC/THCGeneral.cpp line=74 error=38 : no CUDA-capable device is detected
Traceback (most recent call last):
  File "502_GPU.py", line 27, in <module>
    test_x = torch.unsqueeze(test_data.test_data, dim=1).type(torch.FloatTensor)[:2000].cuda()/255.   # Tensor on GPU
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /opt/conda/conda-bld/pytorch_1535493744281/work/aten/src/THC/THCGeneral.cpp:74

bumblebee的cuda链接:
https://build.opensuse.org/package/show/home%3ABumblebee-Project%3AnVidia%3Alatest-beta/cuda-9.0
有木有坛子遇到这种情况的鸭…


#2

你的 /var/log/Xorg.#.log 发出来看看,# 表示数字