GL not available. Running with restricted functionality

Laptop has hybrid graphics card system, both Nvidia and Intel. When I run the samples of host-linux build; most of them give error:
WindowGLFW: Failed create window
Segmentation fault (core dumped)

the sample_hello_world runs ok without core dump, it gives message:
Welcome to Driveworks SDK
Initialize DriveWorks SDK v0.3.400
Release build with GNU 4.8.4 from v0.3.0-rc8-0-g3eeebea
SDK: Resources mounted from /usr/local/driveworks-0.3/data/resources
SDK: GL not available. Running with restricted functionality.
SDK: Default GPU Device set to device number 0
Context of Driveworks SDK successfully initialized.
Version: 0.3.400
GPU devices detected: 1

Device: 0, GeForce 940M
CUDA Driver Version / Runtime Version : 8.0 / 8.0
CUDA Capability Major/Minor version number: 5.0
Total amount of global memory in MBytes:2002.94
Memory Clock rate Ghz: 900000
Memory Bus Width bits: 64
L2 Cache Size: 1048576
…

run this:
$ glxinfo | grep OpenGL
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 20
Current serial number in output stream: 20

if i set
sudo prime-select nvidia
it will cause the login black screen. i have to set the PRIME to Intel during boot to get into X env.

Please help…thanks.

Hi Jim,

Did you ever resolve this?

Adrian.

Hi I have the same problem. Does anyone solve this?

After another year, on my fresh Ubuntu 1604, I face the same problem with cuda 9.2, with nvidia-396 on a GTX 970, so, if no one comes up with a possible solution, I have to spend propably another couples of hours to fix this $!x# issue

Dear @hermann.fuerntratt,
Could you check running DW samples on host with minimum PASCAL based GPU architecture. GTX 970 is based on Maxwell. Please check the System requirements for the development workstation section -> Hardware in https://developer.nvidia.com/drive/downloads

Dear @SivaRamaKrishnaNV,
the info about HW requirements seems different to


which allows Maxwell
Recommended Host SystemPC (x86 architecture) with a NVIDIA GPU (NVIDIA Maxwell™ based GPU minimum, NVIDIA Pascal™ based GPU)
and the examples run now, after installing all deps listed in the installed docs
file:///home/ndw/driveworks/doc/nvdwx_html/dwx_devguide_getting_started.html

Main problem seems to be that info is fragmented into installed vs online documentation, which makes getting all necessary docs more difficult.

Dear @hermann.fuerntratt,
Could you confirm if you are able to run drivenet sample too?

Yes, drivenet runs on the Maxwell based host.

1 Like