caffe(master分支)Makefile.config分析

本文档详细介绍了在Ubuntu 14.04系统、CUDA 7.5版本和Python 2.7环境下,编译Caffe时Makefile.config文件的配置要点,特别是针对仅支持CPU的设置进行了解析。

本人编译如下版本caffe后,记录下需要注意(修改)Makefile.config的选项
系统:ubuntu 14.04
CUDA:CUDA7.5
Python:Python2.7
仅支持CPU
cat Makefile.config

## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!

# cuDNN acceleration switch (uncomment to build with cuDNN).
# 是否使用cudnn,默认不使用
# USE_CUDNN := 1

# CPU-only switch (uncomment to build without GPU support).
# 是否仅支持cup,注释后会编译gpu部分,因人而异,我自己学习支持cpu就好
CPU_ONLY := 1

# uncomment to disable IO dependencies and corresponding data layers
# 选择支持库,可以先按默认都不选,包括下面对opencv,leveldb,lmdb库的选项都可以注释
# USE_OPENCV := 0
# USE_LEVELDB := 0
# USE_LMDB := 0

# uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
#       You should not set this flag if you will be reading LMDBs with any
#       possibility of simultaneous read and write
# ALLOW_LMDB_NOLOCK := 1

# Uncomment if you're using OpenCV 3
# OPENCV_VERSION := 3

# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# 可选g++版本,如果编译报错因g++库问题,可以尝试换个g++版本,比如曾经报错然后试过g++-5.x,g++-4.x等
CUSTOM_CXX := g++

# CUDA directory contains bin/ and lib/ directories that we need.
# cuda安装命令,其实使用NVADIA gpu才会用到cuda,但是可以使用sudo apt-get install nvidia-cuda-toolkit
# 安装后,which cuda,添加路径编译
CUDA
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hello小崔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值