caffe make error and solutions

本文解决CUDA架构配置与HDF5库链接错误的问题,包括修改makefile.config文件中的CUDA_ARCH参数,定位并添加HDF5库路径,解决链接库未找到的错误,以及创建boost库符号链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. arch=compute_20,code=sm_20 problem:::

comment this in 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_50,code=compute_50

 

 

 

2.hdf5.h no such directory or file:::

find where is this file and add the path in makefile.config

 

 PYTHON_INCLUDE := /usr/include/python3.5m \

                 /usr/lib/python3.5/dist-packages/numpy/core/include \

         /usr/include/hdf5/serial/(this is the path added)

 

3./usr/bin/ld: cannot find -lhdf5_hl

 /usr/bin/ld: cannot find -lhdf5:::::

 

find the right path and add it to config file, ex.

LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial

4. cannot find -lboost_python3

find the right path(there is not libboost_python3 in my pc, just 

libboost_python-py35

) and cd to that path, and run

sudo ln -s libboost_python-py35.so libboost_python3.so 

to set a symlink for this file, finally run sudo ldconfig.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值