InternalError: cudaGetDevice() failed in anaconda3












0















I know there are a great deal of similar question, but they could not fix my issue.



I got the error messages when running tensorflow code in anaconda3:



My environment:



OS: windows 10



GPU: NVIDIA GeForce 940MX



CPU: Intel Core i7



TOOL: Anaconda 3



Jupiter Notebook: 5.6.0 included in Anaconda



TensorFlow: tensorflow-base 1.12 installed in Anaconda UI



Cuda: Cudatoolkit 9.0 installed in Anaconda UI



Error info



    ERROR:tensorflow:==================================
Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>):
<tf.Operation 'init' type=NoOp>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
File "C:anaconda3librunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec) File "C:anaconda3librunpy.py", line 85, in _run_code
exec(code, run_globals) File "C:anaconda3libsite-packagesipykernel_launcher.py", line 16, in <module>
app.launch_new_instance() File "C:anaconda3libsite-packagestraitletsconfigapplication.py", line 658, in launch_instance
app.start() File "C:anaconda3libsite-packagesipykernelkernelapp.py", line 499, in start
self.io_loop.start() File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 132, in start
self.asyncio_loop.run_forever() File "C:anaconda3libasynciobase_events.py", line 422, in run_forever
self._run_once() File "C:anaconda3libasynciobase_events.py", line 1435, in _run_once
handle = None # Needed to break cycles when an exception occurs. File "C:anaconda3libasyncioevents.py", line 157, in _run
self = None # Needed to break cycles when an exception occurs. File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 122, in _handle_events
handler_func(fileobj, events) File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
_state.contexts = current_state File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 463, in _handle_events
raise File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg) File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 438, in _run_callback
raise File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
_state.contexts = current_state File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg) File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 241, in dispatch_shell
self._publish_status(u'idle') File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 421, in execute_request
self._abort_queues() File "C:anaconda3libsite-packagesipykernelipkernel.py", line 258, in do_execute
return reply_content File "C:anaconda3libsite-packagesipykernelzmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs) File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2667, in run_cell
return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2801, in _run_cell
return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2902, in run_ast_nodes
return True File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2981, in run_code
return outflag File "<ipython-input-19-06b55504a78f>", line 22, in <module>
init = tf.initialize_all_variables() File "C:anaconda3libsite-packagestensorflowpythonutiltf_should_use.py", line 189, in wrapped
return _add_should_use_warning(fn(*args, **kwargs))
==================================
---------------------------------------------------------------------------
InternalError Traceback (most recent call last)
<ipython-input-20-7104265d1e89> in <module>()
21
22 init = tf.global_variables_initializer()
---> 23 with tf.Session() as sess:
24 sess.run(init)
25

C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
1549
1550 """
-> 1551 super(Session, self).__init__(target, graph, config=config)
1552 # NOTE(mrry): Create these on first `__enter__` to avoid a reference cycle.
1553 self._default_graph_context_manager = None

C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
674 try:
675 # pylint: disable=protected-access
--> 676 self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
677 # pylint: enable=protected-access
678 finally:

InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version









share|improve this question



























    0















    I know there are a great deal of similar question, but they could not fix my issue.



    I got the error messages when running tensorflow code in anaconda3:



    My environment:



    OS: windows 10



    GPU: NVIDIA GeForce 940MX



    CPU: Intel Core i7



    TOOL: Anaconda 3



    Jupiter Notebook: 5.6.0 included in Anaconda



    TensorFlow: tensorflow-base 1.12 installed in Anaconda UI



    Cuda: Cudatoolkit 9.0 installed in Anaconda UI



    Error info



        ERROR:tensorflow:==================================
    Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>):
    <tf.Operation 'init' type=NoOp>
    If you want to mark it as used call its "mark_used()" method.
    It was originally created here:
    File "C:anaconda3librunpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec) File "C:anaconda3librunpy.py", line 85, in _run_code
    exec(code, run_globals) File "C:anaconda3libsite-packagesipykernel_launcher.py", line 16, in <module>
    app.launch_new_instance() File "C:anaconda3libsite-packagestraitletsconfigapplication.py", line 658, in launch_instance
    app.start() File "C:anaconda3libsite-packagesipykernelkernelapp.py", line 499, in start
    self.io_loop.start() File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 132, in start
    self.asyncio_loop.run_forever() File "C:anaconda3libasynciobase_events.py", line 422, in run_forever
    self._run_once() File "C:anaconda3libasynciobase_events.py", line 1435, in _run_once
    handle = None # Needed to break cycles when an exception occurs. File "C:anaconda3libasyncioevents.py", line 157, in _run
    self = None # Needed to break cycles when an exception occurs. File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 122, in _handle_events
    handler_func(fileobj, events) File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
    _state.contexts = current_state File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 463, in _handle_events
    raise File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 480, in _handle_recv
    self._run_callback(callback, msg) File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 438, in _run_callback
    raise File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
    _state.contexts = current_state File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 283, in dispatcher
    return self.dispatch_shell(stream, msg) File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 241, in dispatch_shell
    self._publish_status(u'idle') File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 421, in execute_request
    self._abort_queues() File "C:anaconda3libsite-packagesipykernelipkernel.py", line 258, in do_execute
    return reply_content File "C:anaconda3libsite-packagesipykernelzmqshell.py", line 537, in run_cell
    return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs) File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2667, in run_cell
    return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2801, in _run_cell
    return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2902, in run_ast_nodes
    return True File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2981, in run_code
    return outflag File "<ipython-input-19-06b55504a78f>", line 22, in <module>
    init = tf.initialize_all_variables() File "C:anaconda3libsite-packagestensorflowpythonutiltf_should_use.py", line 189, in wrapped
    return _add_should_use_warning(fn(*args, **kwargs))
    ==================================
    ---------------------------------------------------------------------------
    InternalError Traceback (most recent call last)
    <ipython-input-20-7104265d1e89> in <module>()
    21
    22 init = tf.global_variables_initializer()
    ---> 23 with tf.Session() as sess:
    24 sess.run(init)
    25

    C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
    1549
    1550 """
    -> 1551 super(Session, self).__init__(target, graph, config=config)
    1552 # NOTE(mrry): Create these on first `__enter__` to avoid a reference cycle.
    1553 self._default_graph_context_manager = None

    C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
    674 try:
    675 # pylint: disable=protected-access
    --> 676 self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
    677 # pylint: enable=protected-access
    678 finally:

    InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version









    share|improve this question

























      0












      0








      0








      I know there are a great deal of similar question, but they could not fix my issue.



      I got the error messages when running tensorflow code in anaconda3:



      My environment:



      OS: windows 10



      GPU: NVIDIA GeForce 940MX



      CPU: Intel Core i7



      TOOL: Anaconda 3



      Jupiter Notebook: 5.6.0 included in Anaconda



      TensorFlow: tensorflow-base 1.12 installed in Anaconda UI



      Cuda: Cudatoolkit 9.0 installed in Anaconda UI



      Error info



          ERROR:tensorflow:==================================
      Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>):
      <tf.Operation 'init' type=NoOp>
      If you want to mark it as used call its "mark_used()" method.
      It was originally created here:
      File "C:anaconda3librunpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec) File "C:anaconda3librunpy.py", line 85, in _run_code
      exec(code, run_globals) File "C:anaconda3libsite-packagesipykernel_launcher.py", line 16, in <module>
      app.launch_new_instance() File "C:anaconda3libsite-packagestraitletsconfigapplication.py", line 658, in launch_instance
      app.start() File "C:anaconda3libsite-packagesipykernelkernelapp.py", line 499, in start
      self.io_loop.start() File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 132, in start
      self.asyncio_loop.run_forever() File "C:anaconda3libasynciobase_events.py", line 422, in run_forever
      self._run_once() File "C:anaconda3libasynciobase_events.py", line 1435, in _run_once
      handle = None # Needed to break cycles when an exception occurs. File "C:anaconda3libasyncioevents.py", line 157, in _run
      self = None # Needed to break cycles when an exception occurs. File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 122, in _handle_events
      handler_func(fileobj, events) File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
      _state.contexts = current_state File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 463, in _handle_events
      raise File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 480, in _handle_recv
      self._run_callback(callback, msg) File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 438, in _run_callback
      raise File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
      _state.contexts = current_state File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 283, in dispatcher
      return self.dispatch_shell(stream, msg) File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 241, in dispatch_shell
      self._publish_status(u'idle') File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 421, in execute_request
      self._abort_queues() File "C:anaconda3libsite-packagesipykernelipkernel.py", line 258, in do_execute
      return reply_content File "C:anaconda3libsite-packagesipykernelzmqshell.py", line 537, in run_cell
      return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs) File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2667, in run_cell
      return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2801, in _run_cell
      return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2902, in run_ast_nodes
      return True File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2981, in run_code
      return outflag File "<ipython-input-19-06b55504a78f>", line 22, in <module>
      init = tf.initialize_all_variables() File "C:anaconda3libsite-packagestensorflowpythonutiltf_should_use.py", line 189, in wrapped
      return _add_should_use_warning(fn(*args, **kwargs))
      ==================================
      ---------------------------------------------------------------------------
      InternalError Traceback (most recent call last)
      <ipython-input-20-7104265d1e89> in <module>()
      21
      22 init = tf.global_variables_initializer()
      ---> 23 with tf.Session() as sess:
      24 sess.run(init)
      25

      C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
      1549
      1550 """
      -> 1551 super(Session, self).__init__(target, graph, config=config)
      1552 # NOTE(mrry): Create these on first `__enter__` to avoid a reference cycle.
      1553 self._default_graph_context_manager = None

      C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
      674 try:
      675 # pylint: disable=protected-access
      --> 676 self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
      677 # pylint: enable=protected-access
      678 finally:

      InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version









      share|improve this question














      I know there are a great deal of similar question, but they could not fix my issue.



      I got the error messages when running tensorflow code in anaconda3:



      My environment:



      OS: windows 10



      GPU: NVIDIA GeForce 940MX



      CPU: Intel Core i7



      TOOL: Anaconda 3



      Jupiter Notebook: 5.6.0 included in Anaconda



      TensorFlow: tensorflow-base 1.12 installed in Anaconda UI



      Cuda: Cudatoolkit 9.0 installed in Anaconda UI



      Error info



          ERROR:tensorflow:==================================
      Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>):
      <tf.Operation 'init' type=NoOp>
      If you want to mark it as used call its "mark_used()" method.
      It was originally created here:
      File "C:anaconda3librunpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec) File "C:anaconda3librunpy.py", line 85, in _run_code
      exec(code, run_globals) File "C:anaconda3libsite-packagesipykernel_launcher.py", line 16, in <module>
      app.launch_new_instance() File "C:anaconda3libsite-packagestraitletsconfigapplication.py", line 658, in launch_instance
      app.start() File "C:anaconda3libsite-packagesipykernelkernelapp.py", line 499, in start
      self.io_loop.start() File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 132, in start
      self.asyncio_loop.run_forever() File "C:anaconda3libasynciobase_events.py", line 422, in run_forever
      self._run_once() File "C:anaconda3libasynciobase_events.py", line 1435, in _run_once
      handle = None # Needed to break cycles when an exception occurs. File "C:anaconda3libasyncioevents.py", line 157, in _run
      self = None # Needed to break cycles when an exception occurs. File "C:anaconda3libsite-packagestornadoplatformasyncio.py", line 122, in _handle_events
      handler_func(fileobj, events) File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
      _state.contexts = current_state File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 463, in _handle_events
      raise File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 480, in _handle_recv
      self._run_callback(callback, msg) File "C:anaconda3libsite-packageszmqeventloopzmqstream.py", line 438, in _run_callback
      raise File "C:anaconda3libsite-packagestornadostack_context.py", line 302, in null_wrapper
      _state.contexts = current_state File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 283, in dispatcher
      return self.dispatch_shell(stream, msg) File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 241, in dispatch_shell
      self._publish_status(u'idle') File "C:anaconda3libsite-packagesipykernelkernelbase.py", line 421, in execute_request
      self._abort_queues() File "C:anaconda3libsite-packagesipykernelipkernel.py", line 258, in do_execute
      return reply_content File "C:anaconda3libsite-packagesipykernelzmqshell.py", line 537, in run_cell
      return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs) File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2667, in run_cell
      return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2801, in _run_cell
      return result File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2902, in run_ast_nodes
      return True File "C:anaconda3libsite-packagesIPythoncoreinteractiveshell.py", line 2981, in run_code
      return outflag File "<ipython-input-19-06b55504a78f>", line 22, in <module>
      init = tf.initialize_all_variables() File "C:anaconda3libsite-packagestensorflowpythonutiltf_should_use.py", line 189, in wrapped
      return _add_should_use_warning(fn(*args, **kwargs))
      ==================================
      ---------------------------------------------------------------------------
      InternalError Traceback (most recent call last)
      <ipython-input-20-7104265d1e89> in <module>()
      21
      22 init = tf.global_variables_initializer()
      ---> 23 with tf.Session() as sess:
      24 sess.run(init)
      25

      C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
      1549
      1550 """
      -> 1551 super(Session, self).__init__(target, graph, config=config)
      1552 # NOTE(mrry): Create these on first `__enter__` to avoid a reference cycle.
      1553 self._default_graph_context_manager = None

      C:anaconda3libsite-packagestensorflowpythonclientsession.py in __init__(self, target, graph, config)
      674 try:
      675 # pylint: disable=protected-access
      --> 676 self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
      677 # pylint: enable=protected-access
      678 finally:

      InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version






      python tensorflow






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 10:37









      zozowitzozowit

      34




      34
























          0






          active

          oldest

          votes











          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%2f53410228%2finternalerror-cudagetdevice-failed-in-anaconda3%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
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53410228%2finternalerror-cudagetdevice-failed-in-anaconda3%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

          MongoDB - Not Authorized To Execute Command

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

          How to fix TextFormField cause rebuild widget in Flutter