Ich habe die native Optimierung auf der CPU und die neue Speicherzuweisungsoption während der Konfiguration geöffnet
Ich führe die Datei mnist_with_summaries.py
, wenn der Code in läuft
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)
Ich habe einen Fehler bekommen
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
scheint, dass ich /usr/local/cuda-8.0/extras/CUPTI/lib64 zu LD_LIBRARY hinzufügen muss, habe es gelöst
Hilfreichster Kommentar
scheint, dass ich /usr/local/cuda-8.0/extras/CUPTI/lib64 zu LD_LIBRARY hinzufügen muss, habe es gelöst