In file included from ./third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1:
external/eigen_archive/unsupported/Eigen/CXX11/Tensor:84:10: fatal error: 'cuda_runtime.h' file not found
#include <cuda_runtime.h>
1 error generated.
Target //tensorflow/examples/android:tensorflow_demo failed to build

这是找不到cuda_runtime.h,在:

tensorflow/third_party/gpus/crosstool/目录,打开CROSSTOOL_nvcc.tpl文件,搜索cxx_builtin_include_directory,在下面添加行如下
cxx_builtin_include_directory: "/usr/local/cuda-8.0/include"    连接到路径就可以啦

不过,最后的最后,我还是没ok,可能还有个CROSSTOOL_***.tpl文件没有加路径吧,因为是编译android:tensorflow_demo 所以我

在./config的时候屏蔽了cuda。后面就可以编译ok了。

最新文章

  1. Python Locust性能测试框架实践
  2. 纯CSS制作三角(转)
  3. ZOJ3261 Connections in Galaxy War 并查集
  4. ORA-01652:无法通过128(在表空间TEMP中)扩展temp段
  5. 开发该选择Blocks还是Delegates(转)
  6. CouldnotcreateServerSocketonaddress0.0.0.0/0.0.0.0:9083
  7. javascript小练习—函数接收参数并弹出
  8. java模式之装饰模式
  9. Cow Hopscotch
  10. 【bug清除】新Surface Pro使用OneNote出现毛刺现象的解决方案
  11. 【错误总结1:unity StartCoroutine 报 NullReferenceException 错误】
  12. css3流动布局
  13. 跟bWAPP学WEB安全(PHP代码)--终结篇:文件目录遍历、文件上传、SSRF、CSRF、XXE、文件包含
  14. VS2010和选中代码相同的代码的颜色设置,修改高亮颜色
  15. Codeforces Beta Round #64D - Professor&#39;s task
  16. 流式套接字:基于TCP协议的Socket网络编程(案例2)
  17. C语言strrev()函数:字符串逆置(倒序、逆序)
  18. 自绘图片下拉项 combobox listbox
  19. r语言与dataframe
  20. BZOJ 1089 SCOI2003 严格n元树 动态规划+高精度

热门文章

  1. 详解Makefile 函数的语法与使用 (转)
  2. AspectJ的拓展学习--织入顺序和通知参数指定
  3. Selenium 基础知识
  4. DP常用模板
  5. 常见模块(一) time/datetime
  6. ssh登录原理及免密登录方法
  7. 新系统centos7重启网络报错
  8. Red-Gate.NET.Reflector.v8.0.1.308(内含注册机Keygen与注册图解)
  9. 这台计算机上缺少此项目引用的 NuGet 程序包,DotNetCompilerPlatform
  10. 为嵌入式mplayer移植添加ALSA音频驱动(全志V3s荔枝派zero)