Saturday, March 15, 2008

Solution \ CUDA Programming \ "nvcc: command not found"

Add the directory to your path and the compilation will be ok...

At the end of building process you should see... Finished building all...

Add this paths using command line

export PATH=$PATH:/usr/local/cuda/bin

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib

2 comments:

Anonymous said...

you can put this in the .bashrc file in the home folder.

by going to the home folder and saying gedit .bashrc


now next time onwards just run the bash from command prompt and that will do the rest.

- Mihir Patel

Unknown said...

hi mihir,
i defined my path variables as above, when i try to run the program through the terminal, it works fine.

However when i try to run a .cu prog in eclipse, it says nvcc:command not found. Any way to fix this. Sry for the noob question.