Hi,
I’m new here and I can’t execute CUDA SDK code samples that use OpenGL. For instance starting the fluidsGL example results in error:
[fluidsGL] - [OpenGL/CUDA simulation] starting…
OpenGL device is Available
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 137 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x3a00002
Serial number of failed request: 50
Current serial number in output stream: 50
I think OpenGL is not installed on my machine because if I try: “glxinfo | grep rendering” I get suggestion from Ubuntu to install: “sudo apt-get install mesa-utils”
I did it and now on glxinfo request I get the same error like if I execute fluidsGL.
Does anyone have any ideas how can I get OpenGL working?
The driver and SDK seems to be correctly installed, because another samples work well and all checks from “NVIDIA CUDA C Getting started guide for Linux” I passed successfully.
Here is a description what I’ve done:
I have i7 Intel processor and two GTX 460.
I’ve installed following packages:
devdriver_3.2_linux_64_260.19.26.run
cudatoolkit_3.2.16_linux_64_ubuntu10.04.run
gpucomputingsdk_3.2.16_linux.run
I did all the tricks (add blacklist …) according to the links:
http://developer.dow…rted_Linux.pdf
http://wiki.accelere…r_Ubuntu_10.04
http://developer.nvi…downloads.html
The PATH and LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib: are set. The latter in .bashrc and in /etc/ld.so.conf.d/cuda.conf.
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
cd /usr/lib/
sudo rm libGL.so
sudo ln -s libGL.so.1 libGL.so
Thanks
Roman