X hangs up because of application (use C++, Qt, OpenGL)

Have you tried adding robustness support to your OpenGL implementation using GL_ARB_robustness? 2.6 “Graphics Reset Recovery” Certain events can result in a reset of the GL context. Such a reset causes all context state to be lost. Recovery from such events requires recreation of all objects in the affected context. The current status of the … Read more

How to kill process on GPUs with PID in nvidia-smi using keyword?

The accepted answer doesn’t work for me, probably because nvidia-smi has different formats across different versions/hardware. I’m using a much cleaner command: nvidia-smi | grep ‘python’ | awk ‘{ print $3 }’ | xargs -n1 kill -9 You can replace $3 in the awk expression to fit your nvidia-smi output. It is the n-th column … Read more

OpenGL without X.org in linux

Update (Sep. 17, 2017): NVIDIA recently published an article detailing how to use OpenGL on headless systems, which is a very similar use case as the question describes. In summary: Link to libOpenGL.so and libEGL.so instead of libGL.so. (Your linker options should therefore be -lOpenGL -lEGL Call eglGetDisplay, then eglInitialize to initialize EGL. Call eglChooseConfig … Read more

Tensorflow not running on GPU

To check which devices are available to TensorFlow you can use this and see if the GPU cards are available: from tensorflow.python.client import device_lib print(device_lib.list_local_devices()) Edit Also, you should see this kind of logs if you use TensorFlow Cuda version : I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so.*.* locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library … Read more

Running more than one CUDA applications on one GPU

CUDA activity from independent host processes will normally create independent CUDA contexts, one for each process. Thus, the CUDA activity launched from separate host processes will take place in separate CUDA contexts, on the same device. CUDA activity in separate contexts will be serialized. The GPU will execute the activity from one process, and when … Read more

Swing rendering appears broken in JDK 1.8, correct in JDK 1.7

For those whose problem has not been solved; try this solution: Set the global environment variable “J2D_D3D” to “false” inside the OS. According to Sun, this setting is used to turn off the Java 2D system’s use of Direct3D in Java 1.4.1_02 and later. ie: simply create a environmental variable with name “J2D_D3D” and value … Read more

Error compiling CUDA from Command Prompt

You will need to add the folder containing the “cl.exe” file to your path environment variable. For example: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin Edit: Ok, go to My Computer -> Properties -> Advanced System Settings -> Environment Variables. Here look for “PATH” in the list, and add the path above (or whatever is the location … Read more