python - 使用 GPU Nvidia 的张量流
问题描述
我正在使用 tensorflow 开发一个 Python 项目。我想使用 GPU 来减少训练模型所需的时间。我已按照步骤安装 Cuda Toolkit,并添加了必要的环境变量。我仍然收到此错误:
2020-11-01 15:04:56.197406: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
2020-11-01 15:04:58.911682: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll
2020-11-01 15:04:58.960424: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce RTX 2060 computeCapability: 7.5
coreClock: 1.2GHz coreCount: 30 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 312.97GiB/s
2020-11-01 15:04:58.969038: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_101.dll
2020-11-01 15:04:58.980867: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_10.dll
2020-11-01 15:04:58.988995: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cufft64_10.dll
2020-11-01 15:04:59.001511: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library curand64_10.dll
2020-11-01 15:04:59.015870: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusolver64_10.dll
2020-11-01 15:04:59.022750: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_10.dll
2020-11-01 15:04:59.035897: **W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found
2020-11-01 15:04:59.049352: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1753] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.**
Skipping registering GPU devices...
2020-11-01 15:04:59.070732: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
有没有人知道如何解决这个问题?谢谢
解决方案
推荐阅读
- ruby-on-rails - 为 f.select 表单助手设置分组选项
- java - Spring Boot 2 执行器指标
- git - Git:压缩合并后反向合并
- javascript - Speech to text web api 在桌面和移动设备上返回不同的结果
- c - Linux中的输出变化
- json - 如何运行 json_encode 作为演示
- amazon-web-services - 为 Elastic beanstalk 创建 A/B 测试
- java - ModelMapper 条件时如何使用
- oracle - 提取表中所有记录的 BLOB 内容
- spring - Spring Cloud Discovery Eureka - 返回 Localhost 而不是它所在的主机名