How to solve CUDA crash when run CUDA example fluidsGL?

Posted by sam on Ask Ubuntu See other posts from Ask Ubuntu or by sam
Published on 2012-06-17T03:16:50Z Indexed on 2012/06/17 3:24 UTC
Read the original article Hit count: 571

Filed under:

I use ubuntu 12.04 64 bits with GTX560Ti.

I install CUDA by following instruction:

  wget http:      //developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_lin      ux_64_ubuntu11.04.run
  wget http:      //developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux      _64_295.41.run
  wget http:      //developer.download.nvidia.com/compute/cuda/4_2/rel/sdk/gpucomputingsdk_4.2.9      _linux.run
  chmod +x cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
  sudo ./cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
  echo "/usr/local/cuda/lib64" > ~/cuda.conf
  echo "/usr/local/cuda/lib" >> ~/cuda.conf
  sudo mv ~/cuda.conf /etc/ld.so.conf.d/cuda.conf
  sudo ldconfig
  echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc
  chmod +x gpucomputingsdk_4.2.9_linux.run
  ./gpucomputingsdk_4.2.9_linux.run
  sudo apt-get install build-essential libx11-dev libglu1-mesa-dev freeg      lut3-dev libxi-dev libxmu-dev gcc-4.4 g++-4.4
  sed 's/g++ -fPIC/g++-4.4 -fPIC/g' ~/NV      IDIA_GPU_Computing_SDK/C/common/common.mk >       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak; mv       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk
  sed 's/gcc -fPIC/gcc-4.4 -fPIC/g' ~/NV      IDIA_GPU_Computing_SDK/C/common/common.mk >       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak; mv       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk
  sed 's/-L$(SHAREDDIR)\/lib/-L$(SHAREDDIR)\/lib -L\/u      sr\/lib\/nvidia-current/g' ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk       > ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak; mv       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk
  sed 's/-L$(SHAREDDIR)\/lib -L\/usr\/lib\/nvidia-current $(NV      CUVIDLIB)/-L$(SHAREDDIR)\/lib $(NVCUVIDLIB)/g'       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk >       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak; mv       ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk.bak ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk

After I run

  ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/./fluidsGL

It got stuck even mouse or keyboard couldn't move.

How to solve it?

Thank you~

© Ask Ubuntu or respective owner

Related posts about cuda