Ubuntu cuda installation compilation of sample scripts

PTIJ: Haman's bad computer

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

Extract more than nine arguments that occur periodically in a sentence to use in macros in order to typset

How can I write humor as character trait?

How does the math work for Perception checks?

Redundant comparison & "if" before assignment

Can the US President recognize Israel’s sovereignty over the Golan Heights for the USA or does that need an act of Congress?

What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?

How to explain what's wrong with this application of the chain rule?

Pre-mixing cryogenic fuels and using only one fuel tank

Limits and Infinite Integration by Parts

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Can I say "fingers" when referring to toes?

Lowest total scrabble score

Can I visit Japan without a visa?

Why should universal income be universal?

Did arcade monitors have same pixel aspect ratio as TV sets?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Are Captain Marvel's powers affected by Thanos' actions in Infinity War

How to fade a semiplane defined by line?

Has any country ever had 2 former presidents in jail simultaneously?

A social experiment. What is the worst that can happen?

When were female captains banned from Starfleet?

Do the primes contain an infinite almost arithmetic progression?



Ubuntu cuda installation compilation of sample scripts














0















I am a newbie and did extensive search before posting this question. I just installed cuda 10.1 with a nvidia on Ubuntu 18.04 and followed the instructions all the way to test the compilation. Running into -lGL not found



/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile:318: recipe for target 'randomFog' failed
make[1]: * [randomFog] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/home/hozaifa/NVIDIA_CUDA-10.1_Samples/7_CUDALibraries/randomFog'
Makefile:51: recipe for target '7_CUDALibraries/randomFog/Makefile.ph_build' failed
make: *
[7_CUDALibraries/randomFog/Makefile.ph_build] Error 2
make: Target 'all' not remade because of errors.
hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $PATH
/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $LD_LIBRARY_PATH
/usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64
hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$



From which nvcc I get



hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ which nvcc
/usr/local/cuda-10.1/bin/nvcc









share







New contributor




Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I am a newbie and did extensive search before posting this question. I just installed cuda 10.1 with a nvidia on Ubuntu 18.04 and followed the instructions all the way to test the compilation. Running into -lGL not found



    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    Makefile:318: recipe for target 'randomFog' failed
    make[1]: * [randomFog] Error 1
    make[1]: Target 'all' not remade because of errors.
    make[1]: Leaving directory '/home/hozaifa/NVIDIA_CUDA-10.1_Samples/7_CUDALibraries/randomFog'
    Makefile:51: recipe for target '7_CUDALibraries/randomFog/Makefile.ph_build' failed
    make: *
    [7_CUDALibraries/randomFog/Makefile.ph_build] Error 2
    make: Target 'all' not remade because of errors.
    hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $PATH
    /usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $LD_LIBRARY_PATH
    /usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64
    hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$



    From which nvcc I get



    hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ which nvcc
    /usr/local/cuda-10.1/bin/nvcc









    share







    New contributor




    Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am a newbie and did extensive search before posting this question. I just installed cuda 10.1 with a nvidia on Ubuntu 18.04 and followed the instructions all the way to test the compilation. Running into -lGL not found



      /usr/bin/ld: cannot find -lGL
      collect2: error: ld returned 1 exit status
      Makefile:318: recipe for target 'randomFog' failed
      make[1]: * [randomFog] Error 1
      make[1]: Target 'all' not remade because of errors.
      make[1]: Leaving directory '/home/hozaifa/NVIDIA_CUDA-10.1_Samples/7_CUDALibraries/randomFog'
      Makefile:51: recipe for target '7_CUDALibraries/randomFog/Makefile.ph_build' failed
      make: *
      [7_CUDALibraries/randomFog/Makefile.ph_build] Error 2
      make: Target 'all' not remade because of errors.
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $PATH
      /usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $LD_LIBRARY_PATH
      /usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$



      From which nvcc I get



      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ which nvcc
      /usr/local/cuda-10.1/bin/nvcc









      share







      New contributor




      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am a newbie and did extensive search before posting this question. I just installed cuda 10.1 with a nvidia on Ubuntu 18.04 and followed the instructions all the way to test the compilation. Running into -lGL not found



      /usr/bin/ld: cannot find -lGL
      collect2: error: ld returned 1 exit status
      Makefile:318: recipe for target 'randomFog' failed
      make[1]: * [randomFog] Error 1
      make[1]: Target 'all' not remade because of errors.
      make[1]: Leaving directory '/home/hozaifa/NVIDIA_CUDA-10.1_Samples/7_CUDALibraries/randomFog'
      Makefile:51: recipe for target '7_CUDALibraries/randomFog/Makefile.ph_build' failed
      make: *
      [7_CUDALibraries/randomFog/Makefile.ph_build] Error 2
      make: Target 'all' not remade because of errors.
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $PATH
      /usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ echo $LD_LIBRARY_PATH
      /usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64:/usr/local/cuda-10.1/lib64
      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$



      From which nvcc I get



      hozaifa@hozaifa-Ubuntu:~/NVIDIA_CUDA-10.1_Samples$ which nvcc
      /usr/local/cuda-10.1/bin/nvcc







      ubuntu path cuda





      share







      New contributor




      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      Hozaifa BhuttaHozaifa Bhutta

      1




      1




      New contributor




      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Hozaifa Bhutta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Hozaifa Bhutta is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1416543%2fubuntu-cuda-installation-compilation-of-sample-scripts%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Hozaifa Bhutta is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Hozaifa Bhutta is a new contributor. Be nice, and check out our Code of Conduct.













          Hozaifa Bhutta is a new contributor. Be nice, and check out our Code of Conduct.












          Hozaifa Bhutta is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1416543%2fubuntu-cuda-installation-compilation-of-sample-scripts%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...