Makefile.config 中 CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \ -gencode arch=compute_20,code=sm_21 \ -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=sm_50 \ -gencode arch=compute_52,code…
警告打印: nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release. 找到cmake后产生的OpencvConfig.cmake文件,找到如下代码: # Version Compute Capability from which Ope…
在Ubuntu上编译安装caffe还是个比较蛋疼的事,有时候会莫名其妙的碰到很多库的问题,这篇文章就把我在Ubuntu上编译安装caffe的过程和遇到的问题大致记录一下. 1.安装opencv http://machinelearninguru.com/computer_vision/installation/opencv/opencv.html 建议参考这篇文章,过程写得比较清晰 2.安装Matlab 因为我要用到matcaffe所以需要装matlab,这个过程可以参考: http://blo…
错误描述 src/caffe/net.:: fatal error: hdf5.h: No such : recipe 操作过程 step1: 在Makefile.config文件更改INCLUDE_DIRS和LIBRARY_DIRS的内容,添加/usr/include/hdf5/serial/ 到 INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码. #INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include #LIBRARY_DIR…
错误描述 nvcc fatal : Unsupported gpu architecture 'compute_20' Makefile:: recipe for target '.build_release/cuda/src/caffe/solvers/nesterov_solver.o' failed 原来的Makefile.config # CUDA architecture setting: going with all of them. # For CUDA < 6.0, commen…
1. 安装cuda Cuda是英伟达推出的GPU加速运算平台 我这里安装的是cuda7.5,已经安装过的忽略,还没有安装过的这里有安装教程.windows下面安装还是非常简单的. 点击打开链接    (我的显卡是1080 现在支持cuda8.0 所以我下的是8.0) 2. 下载cuDNN(其实是个压缩包)  注意现在8.0出来了,我下的是cuDNN v5 (May 27, 2016), for CUDA 8.0 RC https://developer.nvidia.com/cudnn 用于深度…
Category使得开发过程中,减少了继承的使用,避免子类层级的膨胀.合理使用,可以在不侵入原类代码的基础上,写出漂亮的扩展内容.我更习惯称之为"分类". Category和Extension类似,都是对原类的扩展,区别是前者需要提供Category的名称,并且不直接支持属性:后者为匿名,多存在于类的实现文件,观感上实现属性.变量.方法的私有效果. 主要记录分类使用过程中常涉及的内容: 1.关联对象的使用 分类虽然不直接支持属性,但是可以利用关联对象的方法,达到属性的正常使用效果. 添…
NVCC src/caffe/solvers/adam_solver.cuIn file included from /usr/local/cuda/include/cuda_runtime.h:76:0,                 from <command-line>:0:/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later t…
Linux中,脚本语言环境中,即你用make xxx即其他一些普通linux命令,比如ls,find等,不同的数字,代表不同的含义: 数字 含义 标准叫法0 标准输入  stdin = standard input1 标准输出  stdout = standard output2 标准错误输出  stderr = standard error 而系统默认的stdin,stdout,stderr,都是屏幕,所以,当你执行命令,比如make,后,所输出的信息,都是可以在屏幕上看到的.所以,想要将对应…
1.编译时候出现 make: * [.build_release/examples/siamese/convert_mnist_siamese_data.bin] Error 1 /usr/local/lib/libopencv_imgcodecs.so: undefined reference to TIFFReadDirectory@LIBTIFF_4.0' /usr/local/lib/libopencv_imgcodecs.so: undefined reference toTIFFWr…