Skip to content

How To setup GCC 4.4 for CUDA

salehqt edited this page Jan 7, 2012 · 1 revision

If the version of GCC on your computer is 4.5, NVCC is not going to work and complain. To fix this, follow these steps:

  • Install GCC 4.4 (On ubuntu use: $ apt-get install gcc-4.4)
  • Go to the folder that you installed CUDA (/usr/local/cuda)
  • Go to the bin folder
  • Make symbolic links for gcc, cpp and g++
ln -s /usr/bin/gcc-4.4 gcc
ln -s /usr/bin/cpp-4.4 cpp
ln -s /usr/bin/g++-4.4 g++

Clone this wiki locally