bumblebee primusrun with CUDA throws code=46 error, but optirun works

asked 2017-03-09 00:58:40 -0600


I'm trying to install CUDA on a hybrid graphics laptop. (A Razer-Blade 2014 with an Nvidia 870M card).

I have a working bumblebee installation (as far as running glxspheres, glxgears, and some steam games goes). (I can provide config info on request, I'm kind of new to this so I'm not exactly sure where to start)

I've installed cuda from https://developer.nvidia.com/cuda-toolkit according to their installation instructions here

So far I've been able to successfully compile the nvidia sample files, but when I run any of them with primusrun I get the error:

CUDA error at [some file related to an example] code=46(cudaErrorDevicesUnavailable) "[some line from the example]"

(a list identical to the errors I get can be found in the last post on this thread: https://devtalk.nvidia.com/default/topic/669272/error-while-executing-quot-particles-quot-/ )

What makes this very strange is that whenever I run any of the examples using optirun they run just fine. I would prefer to have primusrun working, or at least know why it won't so I know everything is set up as best as possible.


edit retag flag offensive close merge delete