I am trying to compile a .cu program with nvcc and after every time I try and compile in Unix, my commands no longer work. I get an error:
'command': command not found.
Why is that? I have to logout/exit after each time I compile.
[EDIT] I actually found that setting the path: setenv PATH /usr/local/cuda/bin causes the problem. Commands like: ls, pico, cd, etc. do not work. I can exit and logout
You are deleting your path, you need to append to the PATH instead of overwriting it.
setenv PATH ${PATH}:/usr/local/cuda/bin