Announcement

Collapse
No announcement yet.

CUDA: nvcc cannot be detected installation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CUDA: nvcc cannot be detected installation

    Hello,
    I successfully installed the latest version cuda8.0. But when I type the command "nvcc --version" it says to me that
    The program 'nvcc' is currently not installed.
    What do I need to do now?



  • #2
    Run which nvcc see if it returns anything.

    Comment


    • #3
      Originally posted by Luca View Post
      Run which nvcc see if it returns anything.
      No it didn't return

      Comment


      • #4
        It means either nvcc didn't install properly or is not in your PATH, find where it is installed with whereis nvcc

        Comment


        • #5
          I tried but it only shown "nvcc: "

          Comment


          • #6
            To make sure, close and launch terminal and try nvcc --version
            Last edited by Luca; 22-02-17, 07:09 AM.

            Comment


            • #7
              Can you find where nvcc is installed on your filesystem? If you can, is that path actually in your $PATH?

              Comment


              • #8
                Originally posted by Luca View Post
                To make sure, close and launch terminal and try nvcc --version
                No nothing happened

                Comment


                • #9
                  Can you please post the output of the echo $PATH command?

                  Comment


                  • #10
                    Sorry, I have just noticed that I didn't actually add cuda to my current user's path.
                    Now the problem has been fixed.

                    Comment


                    • #11
                      Please add your solution as an answer so it will help to the others.

                      Comment


                      • #12
                        In fact, it's the situation that I set the environment variable in a wrong way. As a replacement for

                        $ export PATH=/usr/local/cuda-7.0/bin:$PATH
                        $ export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH
                        as it's recommended, I select to edit /etc/profile, which is not recommended.

                        Comment

                        Working...
                        X