简体   繁体   English

基于Tensorflow GPU的安装

[英]tensorflow GPU based installation

My system is ubuntu 16.04 version my laptop is dell Inspiron-5521 and it has intel graphic card but tensorflow needs nvidia graphics for cuda support. 我的系统是ubuntu 16.04版本,我的笔记本电脑是Dell Inspiron-5521 ,它具有intel图形卡,但tensorflow需要nvidia图形以支持cuda。

Is there any way where i can run tensorflow with GPU(with CPU is working) on intel graphics. 有什么办法可以在英特尔图形上使用GPU(在CPU工作时)运行Tensorflow。

During installation of tensorflow-gpu i have no error when i import i get " 在安装tensorflow-gpu的过程中,导入时我没有错误,我得到“

Failed to load the native TensorFlow runtime 无法加载本机TensorFlow运行时

." ”。

Did some digging then found to install cuda downloaded the "cuda_9.1.85_387.26_linux.run" file but faces issues while running it 做了一些挖掘之后发现安装了cuda,下载了“ cuda_9.1.85_387.26_linux.run”文件,但是在运行时遇到了问题

"Detected 4 CPUs online; setting concurrency level to 4. “检测到4个CPU在线;将并发级别设置为4。

The file '/tmp/.X0-lock' exists and appears to contain the process ID 文件“ /tmp/.X0-lock”存在并且似乎包含进程ID

'1033' of a runnning X server. 正在运行的X服务器的“ 1033”。

It appears that an X server is running. 似乎X服务器正在运行。 Please exit X before installation. 请在安装前退出X。 If you're sure that X is not running, but are getting this error, please delete any X lock files in /tmp." 如果您确定X不在运行,但是出现此错误,请删除/ tmp中的所有X锁定文件。”

Deleted files from tmp folder and tried still same issue. 从tmp文件夹中删除了文件,并尝试了同样的问题。

To run tensorflow-gpu you need nvidia card. 要运行tensorflow-gpu您需要nvidia卡。 You'll need to stick to running normal tensorflow on CPU. 您需要坚持在CPU上运行正常的tensorflow。 Is Intel based graphic card compatible with tensorflow/GPU? 基于Intel的图形卡是否与Tensorflow / GPU兼容?

Tensorflow does not support OpenCL API that you can use with Intel or AMD, only CUDA. Tensorflow不支持可与Intel或AMD一起使用的OpenCL API,仅支持CUDA。 CUDA is a proprietary NVidia technology that only works with NVidia GPUs. CUDA是NVidia的专有技术,仅可与NVidia GPU配合使用。

You may like to search for machine learning frameworks that utilise OpenCL, but I only find some niche projects at the moment. 您可能想搜索利用OpenCL的机器学习框架,但目前我只找到一些利基项目。

I had to switch from AMD to NVidia to be able to run Tensorflow calculations on GPU. 我必须从AMD切换到NVidia,才能在GPU上运行Tensorflow计算。

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

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