Ubuntu22.04下CUDA、TensorFlow与TensorRT安装后运行异常求助
问题描述
Ubuntu 22.04系统下,已按NVIDIA官方文档完成CUDA、CUDNN、TensorFlow及TensorRT安装,CUDA与CUDNN测试均通过,但TensorFlow测试失败,出现两个问题:
- 执行
import tensorflow as tf时,弹出TF-TRT警告:TF-TRT Warning: Could not find TensorRT - 执行
hello = tf.constant('Hello, TensorFlow!')时,报错:failed call to cuInit: CUDA_ERROR_SYSTEM_DRIVER_MISMATCH: system has unsupported display driver / cuda driver combination
NVCC版本信息
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Thu_Nov_18_09:45:30_PST_2021 Cuda compilation tools, release 11.5, V11.5.119 Build cuda_11.5.r11.5/compiler.30672275_0
附件1:import tensorflow as tf输出
2023-03-25 23:46:25.078082: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0. 2023-03-25 23:46:25.101349: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-25 23:46:25.470624: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
附件2:hello = tf.constant('Hello, TensorFlow!')输出
2023-03-25 23:46:34.600824: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:266] failed call to cuInit: CUDA_ERROR_SYSTEM_DRIVER_MISMATCH: system has unsupported display driver / cuda driver combination 2023-03-25 23:46:34.600845: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:168] retrieving CUDA diagnostic information for host: aham-US-Desktop-Codex-R 2023-03-25 23:46:34.600848: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:175] hostname: aham-US-Desktop-Codex-R 2023-03-25 23:46:34.600902: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:199] libcuda reported version is: 510.108.3 2023-03-25 23:46:34.600912: I tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:203] kernel reported version is: 530.30.2 2023-03-25 23:46:34.600915: E tensorflow/compiler/xla/stream_executor/cuda/cuda_diagnostics.cc:312] kernel version 530.30.2 does not match DSO version 510.108.3 – cannot find working devices in this configuration
已尝试操作
已查阅大量论坛及官方文档,问题仍未解决,求可行解决方案。
内容的提问来源于stack exchange,提问作者Scott Hameed
相关产品推荐
相关产品推荐

