libtensorflow_framework.so: undefined symbol: cuDevicePrimaryCtxGetState












1














I have installed tensorflow-gpu with conda successfully. When I test doing import tensorflow I have the issue mentioned above. Any idea? I have checked my drivers, the nvidia toolkit and cudnn are intalled correctly and set the values of PATH, LD_LIBRARY_PATH and CUDA_HOME respectively.
...Fri Nov 23 12:00:18 2018

+------------------------------------------------------+

| NVIDIA-SMI 340.107 Driver Version: 340.107 |

|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro FX 5600 Off | 0000:02:00.0 N/A | N/A |
| 61% 77C P0 N/A / N/A | 2MiB / 1535MiB | N/A Default |
+-------------------------------+----------------------+----------------------+



+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+










share|improve this question





























    1














    I have installed tensorflow-gpu with conda successfully. When I test doing import tensorflow I have the issue mentioned above. Any idea? I have checked my drivers, the nvidia toolkit and cudnn are intalled correctly and set the values of PATH, LD_LIBRARY_PATH and CUDA_HOME respectively.
    ...Fri Nov 23 12:00:18 2018

    +------------------------------------------------------+

    | NVIDIA-SMI 340.107 Driver Version: 340.107 |

    |-------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    |===============================+======================+======================|
    | 0 Quadro FX 5600 Off | 0000:02:00.0 N/A | N/A |
    | 61% 77C P0 N/A / N/A | 2MiB / 1535MiB | N/A Default |
    +-------------------------------+----------------------+----------------------+



    +-----------------------------------------------------------------------------+
    | Compute processes: GPU Memory |
    | GPU PID Process name Usage |
    |=============================================================================|
    | 0 Not Supported |
    +-----------------------------------------------------------------------------+










    share|improve this question



























      1












      1








      1







      I have installed tensorflow-gpu with conda successfully. When I test doing import tensorflow I have the issue mentioned above. Any idea? I have checked my drivers, the nvidia toolkit and cudnn are intalled correctly and set the values of PATH, LD_LIBRARY_PATH and CUDA_HOME respectively.
      ...Fri Nov 23 12:00:18 2018

      +------------------------------------------------------+

      | NVIDIA-SMI 340.107 Driver Version: 340.107 |

      |-------------------------------+----------------------+----------------------+
      | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
      | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
      |===============================+======================+======================|
      | 0 Quadro FX 5600 Off | 0000:02:00.0 N/A | N/A |
      | 61% 77C P0 N/A / N/A | 2MiB / 1535MiB | N/A Default |
      +-------------------------------+----------------------+----------------------+



      +-----------------------------------------------------------------------------+
      | Compute processes: GPU Memory |
      | GPU PID Process name Usage |
      |=============================================================================|
      | 0 Not Supported |
      +-----------------------------------------------------------------------------+










      share|improve this question















      I have installed tensorflow-gpu with conda successfully. When I test doing import tensorflow I have the issue mentioned above. Any idea? I have checked my drivers, the nvidia toolkit and cudnn are intalled correctly and set the values of PATH, LD_LIBRARY_PATH and CUDA_HOME respectively.
      ...Fri Nov 23 12:00:18 2018

      +------------------------------------------------------+

      | NVIDIA-SMI 340.107 Driver Version: 340.107 |

      |-------------------------------+----------------------+----------------------+
      | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
      | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
      |===============================+======================+======================|
      | 0 Quadro FX 5600 Off | 0000:02:00.0 N/A | N/A |
      | 61% 77C P0 N/A / N/A | 2MiB / 1535MiB | N/A Default |
      +-------------------------------+----------------------+----------------------+



      +-----------------------------------------------------------------------------+
      | Compute processes: GPU Memory |
      | GPU PID Process name Usage |
      |=============================================================================|
      | 0 Not Supported |
      +-----------------------------------------------------------------------------+







      tensorflow






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 11:02

























      asked Nov 22 at 17:43









      Cla

      62




      62
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to have the proper minimum CUDA support (seems like it's 7 https://askubuntu.com/questions/988787/nvidia-cuda-theano-could-not-find-symbol-cudeviceprimaryctxgetstate) with cuDNN 3.



          Upgrade your drivers if possible to get this version.



          Otherwise, use either tensorflow-mkl or for older CPU models tensorflow-eigen.






          share|improve this answer





















          • thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
            – Cla
            Nov 23 at 9:30












          • No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
            – Matthieu Brucher
            Nov 23 at 9:39










          • Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
            – Matthieu Brucher
            Nov 23 at 9:41










          • Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
            – Cla
            Nov 23 at 9:53












          • Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
            – Cla
            Nov 23 at 9:55











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53436031%2flibtensorflow-framework-so-undefined-symbol-cudeviceprimaryctxgetstate%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You need to have the proper minimum CUDA support (seems like it's 7 https://askubuntu.com/questions/988787/nvidia-cuda-theano-could-not-find-symbol-cudeviceprimaryctxgetstate) with cuDNN 3.



          Upgrade your drivers if possible to get this version.



          Otherwise, use either tensorflow-mkl or for older CPU models tensorflow-eigen.






          share|improve this answer





















          • thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
            – Cla
            Nov 23 at 9:30












          • No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
            – Matthieu Brucher
            Nov 23 at 9:39










          • Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
            – Matthieu Brucher
            Nov 23 at 9:41










          • Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
            – Cla
            Nov 23 at 9:53












          • Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
            – Cla
            Nov 23 at 9:55
















          0














          You need to have the proper minimum CUDA support (seems like it's 7 https://askubuntu.com/questions/988787/nvidia-cuda-theano-could-not-find-symbol-cudeviceprimaryctxgetstate) with cuDNN 3.



          Upgrade your drivers if possible to get this version.



          Otherwise, use either tensorflow-mkl or for older CPU models tensorflow-eigen.






          share|improve this answer





















          • thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
            – Cla
            Nov 23 at 9:30












          • No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
            – Matthieu Brucher
            Nov 23 at 9:39










          • Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
            – Matthieu Brucher
            Nov 23 at 9:41










          • Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
            – Cla
            Nov 23 at 9:53












          • Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
            – Cla
            Nov 23 at 9:55














          0












          0








          0






          You need to have the proper minimum CUDA support (seems like it's 7 https://askubuntu.com/questions/988787/nvidia-cuda-theano-could-not-find-symbol-cudeviceprimaryctxgetstate) with cuDNN 3.



          Upgrade your drivers if possible to get this version.



          Otherwise, use either tensorflow-mkl or for older CPU models tensorflow-eigen.






          share|improve this answer












          You need to have the proper minimum CUDA support (seems like it's 7 https://askubuntu.com/questions/988787/nvidia-cuda-theano-could-not-find-symbol-cudeviceprimaryctxgetstate) with cuDNN 3.



          Upgrade your drivers if possible to get this version.



          Otherwise, use either tensorflow-mkl or for older CPU models tensorflow-eigen.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 at 17:58









          Matthieu Brucher

          11.8k22137




          11.8k22137












          • thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
            – Cla
            Nov 23 at 9:30












          • No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
            – Matthieu Brucher
            Nov 23 at 9:39










          • Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
            – Matthieu Brucher
            Nov 23 at 9:41










          • Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
            – Cla
            Nov 23 at 9:53












          • Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
            – Cla
            Nov 23 at 9:55


















          • thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
            – Cla
            Nov 23 at 9:30












          • No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
            – Matthieu Brucher
            Nov 23 at 9:39










          • Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
            – Matthieu Brucher
            Nov 23 at 9:41










          • Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
            – Cla
            Nov 23 at 9:53












          • Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
            – Cla
            Nov 23 at 9:55
















          thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
          – Cla
          Nov 23 at 9:30






          thanks! but are tensorflow-mkl or tensorflow-eigen GPU ? I do really need to try with GPU. I am using cuDNN 7, CUDA 9.2 and my card is Quadro FX 5600 with driver updated to Driver Version: 340.107. CPU Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
          – Cla
          Nov 23 at 9:30














          No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
          – Matthieu Brucher
          Nov 23 at 9:39




          No, they are not. But what the error message means is that it cannot find the latest install of the Cuda libraries.
          – Matthieu Brucher
          Nov 23 at 9:39












          Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
          – Matthieu Brucher
          Nov 23 at 9:41




          Check the LD_LIBRARY_PATH variable and make sure the path to Cuda libraries is there.
          – Matthieu Brucher
          Nov 23 at 9:41












          Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
          – Cla
          Nov 23 at 9:53






          Thanks! checked that, don't know what I am missing export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:usr/local/cuda-9.0/bin export CUDA_HOME=/usr/local/cuda export PATH=/usr/local/cuda-9.0/bin:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:$PATH
          – Cla
          Nov 23 at 9:53














          Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
          – Cla
          Nov 23 at 9:55




          Do you mean cuda toolkit? or cudnn or cupti?? Thanks!
          – Cla
          Nov 23 at 9:55


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2fstackoverflow.com%2fquestions%2f53436031%2flibtensorflow-framework-so-undefined-symbol-cudeviceprimaryctxgetstate%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

          What visual should I use to simply compare current year value vs last year in Power BI desktop

          How to ignore python UserWarning in pytest?

          Alexandru Averescu