I installed the CUDA toolkit and it asks me to make sure the PATH includes /usr/local/cuda/bin. I dont know how to do this in ubuntu. Can someone please provide me detailed instructions on how to do so?
Moreover, it also asks me to add /usr/local/cuda/lib64 and /usr/local/cuda/lib to /etc/ld.so.conf and run ldconfig as root. I added softlinks for the above folders in root and ran ldconfig. However, whenever I try to include a cuda library in my C program, the gcc complains that it cannot find the .h file. Can someone please let me know what i am doing wrong?