Cuda 9.0 Samples Error


I just installed cuda 9.0 on my Alienware R13 laptop in a OpenSUSE Leap 42.2 linux distro. I have succesfully installed the nVidia driver and cuda 9.0. However, when I run the sample programs. I found that for all the samples with GUIs, like the ones in the simulation and imaging directories, the program just crash with the following error:

CUDA error at bodysystemcuda_impl.h:159 code=46(cudaErrorDevicesUnavailable) “cudaEventCreate(&m_deviceData[0].event)”

My laptop also has an integrated intel graphics card. I’m not sure if that is a problem that’s causing this. Anyone has similar problem? I’d appreciate any advice.


The opengl context for these is getting created on the intel GPU while the CUDA context is getting created on the NVIDIA GPU. This won’t work for the OpenGL/CUDA interop samples.

You’ll need to investigate optimus workarounds for linux if you want to work around this issue. To some extent it may also depend on the specific design of your particular laptop.