简体   繁体   English

我可以让人们在使用不同CUDA依赖项安装的版本之上使用其他Tensorflow-gpu版本吗?

[英]Can I let people use a different Tensorflow-gpu version above what they had installed with different CUDA dependencies?

I was trying to pack and release a project which uses tensorflow-gpu . 我试图打包并发布一个使用tensorflow-gpu的项目。 Since my intention is to make the installation as easy as possible, I do not want to let the user compile tensorflow-gpu from scratch so I decided to use pipenv to install whatsoever version pip provides. 因为我的意图是使安装尽可能容易,所以我不想让用户从头开始编译tensorflow-gpu ,所以我决定使用pipenv来安装pip提供的任何版本。

I realized that although everything works in my original local version, I can not import tensorflow in the virtualenv version. 我意识到尽管一切都可以在我的原始本地版本中运行,但是我无法在virtualenv版本中import tensorflow

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Although this seems to be easily fixable by changing local symlinks, that may break my local tensorflow and is against the concept of virtualenv and I will not have any idea on how people installed CUDA on their instances, so it doesn't seems to be promising for portability. 尽管通过更改本地符号链接似乎很容易解决此问题,但这可能会破坏我的本地张量tensorflow ,并且违反了virtualenv的概念,而且我对人们如何在其实例上安装CUDA也tensorflow ,因此这似乎没有什么希望便于携带。

What can I do to ensure that tensorflow-gpu works when someone from internet get my project only with the guide of "install CUDA XX"? 当互联网上的某人仅在“安装CUDA XX”的指导下获得我的项目时,我该怎么做才能确保tensorflow-gpu正常工作? Should I fall back to tensorflow to ensure compatibility, and let my user install tensorflow-gpu manually? 我应该回到tensorflow以确保兼容性,并让我的用户手动安装tensorflow-gpu吗?

Having a working tensorflow-gpu on a machine does involve a series of steps including installation of cuda and cudnn, the latter requiring an NVidia approval. 在机器上运行tensorflow-gpu确实需要一系列步骤,包括安装cuda和cudnn,后者需要获得NVidia的批准。 There are a lot of machines that would not even meet the required config for tensorflow-gpu, eg any machine that doesn't have a modern nvidia gpu. 许多机器甚至无法满足tensorflow-gpu所需的配置,例如,任何没有现代nvidia gpu的机器。 You may want to define the tensorflow-gpu requirement and leave it to the user to meet it, with appropriate pointers for guidance. 您可能需要定义tensorflow-gpu要求,并由用户来满足它,并带有适当的指导指针。 If the project can work acceptably on tensorflow-cpu, that would be a much easier fallback option. 如果项目可以在tensorflow-cpu上可接受地工作,那将是一个容易得多的后备选项。

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

相关问题 我安装了Tensorflow gpu版本以及CUDA 9.1和python 3.6.5。 但是,在导入tensorflow-gpu之后,出现以下错误: - I installed the Tensorflow gpu version and CUDA 9.1 and python 3.6.5. However, after I import the tensorflow-gpu I got the following error: 与 tensorflow-gpu 1.4 一起使用的 keras 版本 - keras version to use with tensorflow-gpu 1.4 Tensorflow-GPU 不使用 GPU 和 CUDA,CUDNN - Tensorflow-GPU not using GPU with CUDA,CUDNN 我无法导入 tensorflow-gpu - I can't import tensorflow-gpu 尝试安装 tensorflow-gpu 但出现此错误:CUDA 驱动程序版本不足以用于 CUDA 运行时版本 - Trying to install tensorflow-gpu but got this error: CUDA driver version is insufficient for CUDA runtime version 为什么 Python 代码未在 GPU 上实现? TensorFlow-gpu、CUDA、CUDANN 已安装 - Why is the Python code not implementing on GPU? Tensorflow-gpu, CUDA, CUDANN installed 这个 tensorflow 安装有什么问题? 我已经安装了 tensorflow 的 gpu 版本 - What is wrong in this tensorflow installation? I have installed gpu version of tensorflow Tensorflow 的安装版本与我在 Jupyter 上看到的不同 - Installed Version of Tensorflow different from what I see on Jupyter cuDNN 启动失败(tensorflow-gpu/CUDA) - cuDNN launch failure (tensorflow-gpu/CUDA) Anaconda 中的 Tensorflow-Gpu 和 Cuda 驱动程序存在问题 - Problem with Tensorflow-Gpu and Cuda drivers in Anaconda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM