Tensorflow: error running mnist_with_summaries.py on 1.0.0rc0

Created on 27 Jan 2017  ·  1Comment  ·  Source: tensorflow/tensorflow

I opened native optimization on CPU and the new memory allocation option during configuration

I run the file mnist_with_summaries.py, when the code run into

    if i % 100 == 99:  # Record execution stats
      run_options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)
      run_metadata = tf.RunMetadata()
      summary, _ = sess.run([merged, train_step],
                            feed_dict=feed_dict(True),
                            options=run_options,
                            run_metadata=run_metadata)
      train_writer.add_run_metadata(run_metadata, 'step%03d' % i)
      train_writer.add_summary(summary, i)
      saver.save(sess, log_dir+"/model.ckpt", i)
      print('Adding run metadata for', i)

I got error

I tensorflow/stream_executor/dso_loader.cc:116] Couldn't open CUDA library libcupti.so.8.0. LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:/usr/local/lib:/usr/lib:
F tensorflow/core/platform/default/gpu/cupti_wrapper.cc:59] Check failed: ::tensorflow::Status::OK() == (::tensorflow::Env::Default()->GetSymbolFromLibrary( GetDsoHandle(), kName, &f)) (OK vs. Not found: /home/wenjian/anaconda3/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: cuptiActivityRegisterCallbacks)could not find cuptiActivityRegisterCallbacksin libcupti DSO

Most helpful comment

seems that I need to add /usr/local/cuda-8.0/extras/CUPTI/lib64 to LD_LIBRARY, solved it

>All comments

seems that I need to add /usr/local/cuda-8.0/extras/CUPTI/lib64 to LD_LIBRARY, solved it

Was this page helpful?
0 / 5 - 0 ratings