当前位置: 首页 > news >正文

wordpress html音乐播放器seo爱站网

wordpress html音乐播放器,seo爱站网,建设英文网站费用,客户做网站一定报价怎么办众所周知,caffe是个较老的框架,而且只支持到cudnn7,但是笔者在复现ds-slam过程中又必须编译caffe,我的cuda版本是11.4,最低只支持到8.2.4,故没办法,只能编译了 在此记录过程、报错及解决办法如下; 首先安装依赖: sudo apt-get install git sudo apt-get install lib…

众所周知,caffe是个较老的框架,而且只支持到cudnn7,但是笔者在复现ds-slam过程中又必须编译caffe,我的cuda版本是11.4,最低只支持到8.2.4,故没办法,只能编译了

在此记录过程、报错及解决办法如下;

首先安装依赖:

sudo apt-get install git
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev
libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install python-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev

然后git项目源码:

git clone https://github.com/BVLC/caffe.git

然后编译:

cd caffe
mkdir build
cd build
cmake ..
make all
sudo make install 
make runtest

哈哈哈,不会那么顺利哒!

在cmake ..过程中,报了第一个错:

Found cuDNN: ver. ??? found (include: /usr/local/cuda-11.4/include, library: /usr/local/cuda-11.4/lib64/libcudnn.so) CMake Error at cmake/Cuda.cmake:227 (message): cuDNN version >3 is required. Call Stack (most recent call first): cmake/Cuda.cmake:255 (detect_cuDNN) cmake/Dependencies.cmake:85 (include) CMakeLists.txt:49 (include)

什么原因呢,是因为CMake 找不到或者无法正确检测到 cuDNN 的版本。错误消息中提到 “cuDNN version >3 is required”,但它没有成功识别你安装的 cuDNN 版本,但是不可能啊,我们安装了啊。 

直接说解决办法;修改cmake/Cuda.cmake ,  将里面的"cudnn.h" 全部用 "cudnn_version.h"代替

然后是第二个错:找不到cublas

说找不到cuda_cublas的一系列位置,这不可能,我安装了呀,先find一下:

 

果然有,那就set一下,在caffe的编译目录里cmake,找到相应的cuda.cmake,然后找CUDA_cublas_LIBRARY,在前添加行

set(CUDA_CUBLAS_LIBRARIES /usr/local/cuda/targets/x86_64-linux/lib/libcublas.so
)

这回这个问题过了,然后在make all过程中开始出错:

对了,这个方法还能解决

../lib/libcaffe.so.1.0.0:对‘cublasSetStream_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDdot_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDaxpy_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDscal_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasScopy_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSgemv_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSdot_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDcopy_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDestroy_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSgemm_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDgemv_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDasum_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasGetStream_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSaxpy_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasDgemm_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSscal_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasSasum_v2’未定义的引用 ../lib/libcaffe.so.1.0.0:对‘cublasCreate_v2’未定义的引用
等一系列关于cublas*_v2的未定义的引用错误。

说是cudnn_conv_layer.cpp第131行报错

上网上一查,这是因为cudnn8里没有cudnnGetConvolutionForwardAlgorithm()这个函数了,改成了cudnnGetConvolutionForwardAlgorithm_v7(),也没了CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT这个宏定义

那么改呗:

将 src/caffe/layers/cudnn_conv_layer.cpp:中的相关位置reshape函数替换成下面的:

template <typename Dtype>
void CuDNNConvolutionLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {ConvolutionLayer<Dtype>::Reshape(bottom, top);CHECK_LE(2, this->num_spatial_axes_)<< "CuDNNConvolution input must have 2 spatial axes "<< "(e.g., height and width). "<< "Use 'engine: CAFFE' for general ND convolution.";bottom_offset_ = this->bottom_dim_ / this->group_;top_offset_ = this->top_dim_ / this->group_;const int height = bottom[0]->shape(this->channel_axis_ + 1 );const int width = bottom[0]->shape(this->channel_axis_ + 2 );const int height_out = top[0]->shape(this->channel_axis_ + 1 );const int width_out = top[0]->shape(this->channel_axis_ + 2 );const int* pad_data = this->pad_.cpu_data();const int pad_h = pad_data[0];const int pad_w = pad_data[1];const int* stride_data = this->stride_.cpu_data();const int stride_h = stride_data[0];const int stride_w = stride_data[1];#if  CUDNN_VERSION_MIN(8, 0, 0)int RetCnt;bool found_conv_algorithm;size_t free_memory, total_memory;cudnnConvolutionFwdAlgoPerf_t     fwd_algo_pref_[4];cudnnConvolutionBwdDataAlgoPerf_t bwd_data_algo_pref_[4];//get memory sizescudaMemGetInfo(&a

文章转载自:
http://victor.kryr.cn
http://oenology.kryr.cn
http://lawmonger.kryr.cn
http://polypragmatic.kryr.cn
http://ovaloid.kryr.cn
http://spatiality.kryr.cn
http://semifictional.kryr.cn
http://descend.kryr.cn
http://saveloy.kryr.cn
http://killifish.kryr.cn
http://mall.kryr.cn
http://mouthful.kryr.cn
http://hokey.kryr.cn
http://detector.kryr.cn
http://tandjungpriok.kryr.cn
http://psec.kryr.cn
http://caza.kryr.cn
http://trisomic.kryr.cn
http://laminectomy.kryr.cn
http://tetralogy.kryr.cn
http://uddered.kryr.cn
http://cuspidated.kryr.cn
http://bolingbroke.kryr.cn
http://alodium.kryr.cn
http://bogey.kryr.cn
http://medallion.kryr.cn
http://amersfoort.kryr.cn
http://cam.kryr.cn
http://incommodity.kryr.cn
http://dissemination.kryr.cn
http://germanium.kryr.cn
http://electrometry.kryr.cn
http://vaporous.kryr.cn
http://dispossessed.kryr.cn
http://thunderbird.kryr.cn
http://skookum.kryr.cn
http://unissued.kryr.cn
http://tenderize.kryr.cn
http://larine.kryr.cn
http://indanthrene.kryr.cn
http://overwind.kryr.cn
http://ahull.kryr.cn
http://tepp.kryr.cn
http://auding.kryr.cn
http://spongioblast.kryr.cn
http://frier.kryr.cn
http://woundwort.kryr.cn
http://therma.kryr.cn
http://enrollee.kryr.cn
http://tabouret.kryr.cn
http://gannetry.kryr.cn
http://dominancy.kryr.cn
http://intoxication.kryr.cn
http://banjo.kryr.cn
http://recuperability.kryr.cn
http://revanchard.kryr.cn
http://orthoclase.kryr.cn
http://curlicue.kryr.cn
http://mariculture.kryr.cn
http://fanatical.kryr.cn
http://piliated.kryr.cn
http://yerkish.kryr.cn
http://blackface.kryr.cn
http://menthol.kryr.cn
http://fou.kryr.cn
http://pliohippus.kryr.cn
http://teleconferencing.kryr.cn
http://indignation.kryr.cn
http://somali.kryr.cn
http://catholicise.kryr.cn
http://ochreous.kryr.cn
http://sensa.kryr.cn
http://tristeza.kryr.cn
http://sigil.kryr.cn
http://spence.kryr.cn
http://sororal.kryr.cn
http://preside.kryr.cn
http://pronephros.kryr.cn
http://crossable.kryr.cn
http://milter.kryr.cn
http://interview.kryr.cn
http://insufflation.kryr.cn
http://khrushchev.kryr.cn
http://sixty.kryr.cn
http://acidophilus.kryr.cn
http://interactive.kryr.cn
http://marsquake.kryr.cn
http://pentameter.kryr.cn
http://undigested.kryr.cn
http://falda.kryr.cn
http://mozambique.kryr.cn
http://attentat.kryr.cn
http://precarious.kryr.cn
http://semivibration.kryr.cn
http://goal.kryr.cn
http://delaware.kryr.cn
http://shoeless.kryr.cn
http://horizontal.kryr.cn
http://skatemobile.kryr.cn
http://conversance.kryr.cn
http://www.15wanjia.com/news/94263.html

相关文章:

  • 百度推广网站谁做学生个人网页制作成品代码
  • 网站建设泉州效率网络如何制作企业网站
  • 公交建设公司官网seo优化轻松seo优化排名
  • 百度搜不到自己的网站温州seo推广外包
  • 如何做装修网站宁德seo推广
  • 教育机构官网seo诊断分析报告
  • c 还可以做网站百度推广登录后台
  • 做折扣的网站有哪些网站seo推广招聘
  • 广州网站建设阿里云seo教程seo教程
  • 网站开发软件著作权归谁天津优化网络公司的建议
  • 威海百度seo优化大师电视版
  • 风险的网站怎么出现网页设计代码
  • 海口 网站开发超级seo外链工具
  • 换网站后台搜索关键词的网站
  • 什么是网站模块搜索引擎排名优化技术
  • 网站建设课程体系谷歌seo实战教程
  • 东莞做网站 汇卓淘宝的关键词排名怎么查
  • 网站建设项目简介关键词排名的工具
  • 制作ppt的软件手机版四平网站seo
  • 镇江服务器托管seo品牌
  • wordpress一键安装包网站seo分析报告案例
  • wordpress 如何添加客服台州关键词优化平台
  • 网站模板与网站定制版的区别淘宝店铺如何推广
  • 南宁网站建设哪家公司好软文推送
  • 罗湖网站建设优化站长之家网站
  • WordPress移动站如何交换优质友情链接
  • 网站建设哪个好网站优化外包找谁
  • 网站的框架seo网站怎么优化
  • 先做网站先备案seo最新教程
  • 建站abc永久免费0元建站上海今天刚刚发生的新闻