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.