When this happened to me I had to add nvcc in the PATH of the root user as
well.
You should also add CUDA_ROOT to the PATH if you haven't done already.

Apostolis

2012/6/28 ggeo <gg...@windowslive.com>

> Hello,
>
> 1) i did again the installation but still the same.
>
> Now , when i do  "python configure.py --cuda-root=/usr/local/cuda/bin" it
> gives me "
> WARNING: nvcc not in path."
>
> If i do "echo $CUDA_ROOT" it gives me "/usr/local/cuda/bin" but if i do
> "echo $LD_LIBRARY" it doesn't give me any path.
>
> Also ,with "echo $PATH" it gives "/sbin:/bin:/usr/sbin:/usr/bin" .
> It should give "/usr/local/cuda/bin" also.
>
>
> 2) I i tried to edit setup.py and removed the lines :
>     nvcc_path = search_on_path(["nvcc", "nvcc.exe"])
>     if nvcc_path is None:
>         print("*** WARNING: nvcc not in path.")
>         cuda_root_default = None
>
>     else:
>          cuda_root_default = normpath(join(dirname(nvcc_path), ".."))
>
> and just leaving the "cuda_root_default="/usr/local/cuda/bin".
>
> Now , when i do su -c "make install" it gives me at the end :
>
> In file included from src/cpp/cuda.cpp:1:0:
> src/cpp/cuda.hpp:12:18: fatal error: cuda.h: No such file or directory
> compilation terminated.
> error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
>
>
>
> Any ideas?
>
> Thank you.
>
>
>
>
>
>
> --
> View this message in context:
> http://pycuda.2962900.n2.nabble.com/nvcc-not-in-path-tp7574709p7574715.html
> Sent from the PyCuda mailing list archive at Nabble.com.
>
> _______________________________________________
> PyCUDA mailing list
> PyCUDA@tiker.net
> http://lists.tiker.net/listinfo/pycuda
>
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to