2017-02-17 24 views
0

Я устанавливаю Tensorflow в соответствии с инструкциями на official page и на этапе «Проверка вашей установки».Ядро cuda не совпадает во время установки Tensorflow

enter image description here

>>> sess = tf.Session() 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations. 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. 
E tensorflow/stream_executor/cuda/cuda_driver.cc:509] failed call to cuInit: CUDA_ERROR_NO_DEVICE 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:158] retrieving CUDA diagnostic information for host: Shu 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:165] hostname: Shu 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] libcuda reported version is: 375.26.0 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:363] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module 367.57 Mon Oct 3 20:37:01 PDT 2016 
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 
""" 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:193] kernel reported version is: 367.57.0 
E tensorflow/stream_executor/cuda/cuda_diagnostics.cc:303] kernel version 367.57.0 does not match DSO version 375.26.0 -- cannot find working devices in this configuration 

Это то, что я получил, когда я пытаюсь начать сеанс. Я не совсем понимаю, что происходит. Пожалуйста, любезно помогите. Спасибо!

+0

Правильно ли работает cuda? попробуйте команду ** nvidia-smi **. Каков результат? – rAyyy

+1

У вас сломанная установка CUDA. –

ответ

4

Я не верю, что ошибка связана с Tensorflow. Вы должны получить ту же ошибку: nvidia-smi.

Возможно ли, что вы обновили драйверы NVIDIA GPU после установки инструментария CUDA? Похоже, что набор инструментов ожидает версии драйверов 367.57, в то время как вы используете более новую версию, 375.26.

Для быстрой проверки попробуйте вернуться к драйверам NVIDIA версии 367.57; вы можете сделать это с Системные настройки> Программное обеспечение и обновления> Дополнительные драйверы.

После подтверждения несоответствия ожидаемой версии драйверов вы можете остаться с версиями драйверов 367.57 или удалить CUDA Toolkit и cuDNN, обновить драйверы до 375.26 и переустановить CUDA Toolkit и cuDNN.

+0

Вернулся к 367.57, и он решил мою проблему! – user3768495