简体   繁体   English

TF 2.0 GPU配置,如何在pycharm中创建另一个虚拟环境后配置tensorflow-gpu 2.0和cuda,cudnn

[英]TF 2.0 GPU cofingure, how to configure the tensorflow-gpu 2.0 and cuda, cudnn after create another virtual environment in pycharm

I have installed TensorFlow 1.12 in Pycharm using a virtual environment, the GPU can work well. 我已经使用虚拟环境在Pycharm安装了TensorFlow 1.12GPU可以正常工作。 When I create another virtual environment and install TensorFlow 2.0 Alpha , the GPU doesn't work anymore. 当我创建另一个虚拟环境并安装TensorFlow 2.0 AlphaGPU不再起作用。

The error: 错误:

Could not dlopen library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-9.0/lib64:

I had the same issue. 我遇到过同样的问题。 I fixed it by adding the below command to the ' .bashrc ' file. 我通过将以下命令添加到“ .bashrc ”文件中来修复该问题。

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64/ 导出LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64/

System configuration: 系统配置:

Ubuntu 16.04 LTS
Tensorflow GPU 2.0beta1
Cuda 10.0
cuDNN 7.6.0 for Cuda 10.0

I used conda to configure my system. 我使用了conda来配置我的系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM