Google Tensorflow 源码编译(一):Protobuf<v3.0.0-alpha-3>
这几天终于把tensorflow安装上了,中间遇到过不少的问题,这里记录下来。供大家想源码安装的参考。
安装环境:POWER8处理器,Docker容器Ubuntu14.04镜像。
Build Protobuf<v3.0.0-alpha-3> for IBM POWER8 CPU from Source Code
My computer's os is ubuntu 14.04 , and I want to install protobuf v3.0.0-alpha-3, but there is no deb package in the repository, so I need to build from source code.
Here are the steps that I succeed to install protobuf<v3.0.0-alpha-3> on my computer:
1. Get source code
1.1 Get protobuf code
	  git clone https://github.com/google/protobuf
	  git checkout v3.0.0-alpha-3
1.2 Get gtest code
	  The latest protobuf version uses gmock, but v3.0.0-alpha-3 uses gtest. Anyway ,the following code always works!
  git clone https://github.com/franramirez688/gmock(../ is the root path of protobuf)
	  cp ./gmock/gtest ../	
2. Modify the code to support POWER cpu
2.1 Add g++ MACRO
	  in protobuf/src/google/protobuf/stubs/platform_macros.h:
	  change #elif defined(_POWER)  to #elif defined(_POWER) || defined(__powerpc64__) || defined(__PPC64__).  
2.2 Include power cpu header file 
	  in protobuf/src/google/protobuf/stubs/atomicops.h, add:
	  if defined(GOOGLE_PROTOBUF_ARCH_POWER)
	  #include <google/protobuf/stubs/atomicops_internals_power.h>
	  endif
2.3  Add power cpu header file 
	  add atomicops_internals_power.h to  google/protobuf/stubs folder:
	  you can copy it from the latest version < v3.0.0-beta-1>
3. Compile source code
	  $ ./autogen.sh
	  $ ./configure
	  $ make
	  $ make install
4. the binary file <protoc> is saved at protobuf/src/protoc.
Google Tensorflow 源码编译(一):Protobuf<v3.0.0-alpha-3>的更多相关文章
- Google Tensorflow 源码编译(三):tensorflow<v0.5.0>
		这几天终于把tensorflow安装上了,中间遇到过不少的问题,这里记录下来.供大家想源码安装的参考. 安装环境:POWER8处理器,Docker容器Ubuntu14.04镜像. Build Tens ... 
- Google Tensorflow 源码编译(二):Bazel<v0.1.0>
		这几天终于把tensorflow安装上了,中间遇到过不少的问题,这里记录下来.供大家想源码安装的参考. 安装环境:POWER8处理器,Docker容器Ubuntu14.04镜像. Build Baze ... 
- tensorflow 源码编译tensorflow 1.1.0到 tensorflow 2.0,ver:1.1.0rc1、1.4.0rc1、1.14.0-rc1、2.0.0b1
		目录 tensorflow-build table 更多详细过程信息及下载: tensorflow-build tensorflow 源码编译,提升硬件加速,支持cpu加速指令,suport SSE4 ... 
- Tensorflow源码编译常见问题点总结
		Tensorflow源码编译分两种:一种是本地源码编译,另一种是针对ARM平台的源码编译. 接下来分别介绍: 一.本地编译 本地编译时,使用的编译工具是本地GCC. 一般会碰到以下问题: 第1个:ex ... 
- Ubuntu 16.04源码编译安装nginx 1.10.0
		一.下载相关的依赖库 pcre 下载地址 http://120.52.73.43/jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.t ... 
- Centos7下源码编译安装与配置redis5.0
		1.下载redis5.0源码包 wget http://download.redis.io/releases/redis-5.0.5.tar.gz 2.检查是否安装过之前的历史版本 rpm -qa|g ... 
- Tensorflow源码编译,解决tf提示未使用SSE4.1 SSE4.2 AVX警告【转】
		本文转载自:https://blog.csdn.net/iTaacy/article/details/72799833 版权声明:欢迎转载,转载请注明出处! https://blog.csdn.net ... 
- tensorflow 源码编译
		https://blog.csdn.net/xsfl1234/article/details/67669707 https://blog.csdn.net/guxi123/article/detail ... 
- TensorFlow 源码编译安装
		## Install prerequisites (rhel) yum install numpy python-devel python-wheel python-mock ## Install B ... 
随机推荐
- Quartz 基本概念及原理
			最近项目要用quartz,所以记录一下: 概念 Quartz是OpenSymphony开源组织在Job scheduling领域又一个开源项目,它可以与J2EE与J2SE应用程序相结合也可以单独使 ... 
- 类库、委托、is as运算符、泛型集合
			类库: 说白了,就是让别人调用你写的方法,并且不让别人看到你是怎么实现的. 如果有功能你不会做,需要别人帮忙,那么你的同事可以帮你写好一个类,然后你来调用这个类中的方法,完成你的项目. 1.C#源代码 ... 
- 读<jquery 权威指南>[1]-选择器及DOM操作
			今天是小年了,2013马上要过去了,但是学习不能间断啊.最近正在看<jQuery权威指南>,先温习一下选择器和DOM操作. 一.基本选择器 1.table单双行: $(function ( ... 
- HTML5新增video标签及对应属性、API详解
			知识说明: 比不上很牛的前端开发人员,但自始至终明白“万丈高楼平地起”,基础最重要,初学HTML5,稳固基础第一步,把最基本的整理下来,留下自己学习的痕迹.HTML5新增的video标签,将其属性以及 ... 
- 第1章 Express MongoDB 搭建多人博客
			学习环境 Node.js : 0.10.22 + Express : 3.4.4 + MongoDB : 2.4.8 + 快速开始 安装 Express express 是 Node.js 上最流行的 ... 
- 用qpython3写一个最简单的发送短信的程序
			到目前为止并没有多少手机应用是用python开发的,不过qpython可以作为一个不错的玩具推荐给大家来玩. 写一个最简单的发送短信的程序,代码如下: #-*-coding:utf8;-*- #qpy ... 
- jQueryMobile控件之页面切换
			<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ... 
- Java中二维数组与面向对象
			1:二维数组(理解) (1)元素是一维数组的数组. (2)格式: A:数据类型[][] 数组名 = new 数据类型[m][n]; B:数据类型[][] 数组名 = new 数据类型[m][]; C: ... 
- 黑马程序员——【Java基础】——网络编程
			---------- android培训.java培训.期待与您交流! ---------- 一.网络模型概述 网络模型示意图: 说明: (1)数据的传输:在用户端,应用层的数据,经过层层封包,最后到 ... 
- BackTrack5-r3安装前需要的准备及说明
			一. 配置创建一个虚拟机,本教程用的是VMware-workstation-full-10.0.0,BT5-r3-GNOME-64镜像. 这里是BT5-r3-GNOME-64位种子:http://pa ... 
