MXNET 编译安装问题

dmlc/mxnet

Installation problem while make -j$(nproc) #4566

Open
cliveysk opened this Issue on 7 Jan · 2 comments

Comments

Projects
None yet
3 participants

cliveysk commented on 7 Jan

For bugs or installation issues, please provide the following information.
The more information you provide, the more likely people will be able to help you.

Environment info

Operating System: Ubuntu 16.04

Compiler: gcc 5.4

Package used (Python/R/Scala/Julia): R

MXNet version: 0.9.1

Or if installed from source: check out from github

MXNet commit hash (git rev-parse HEAD):b67a4457ffd162ce8e7b7eca96285111362e74b9

If you are using python package, please provide

Python version and distribution:

If you are using R package, please provide

R sessionInfo():

Error Message:

Please paste the full error message, including stack trace.

Minimum reproducible example

if you are using your own code, please provide a short script that reproduces the error.

Steps to reproduce

or if you are running standard examples, please provide the commands you have run that lead to the error.

  1. follow standard installation step to build mxnet
  2. make -j$(nproc)

the following compilation error appear:
build/src/operator/convolution_gpu.o: In function mxnet::op::CuDNNConvolutionOp<float>::SelectAlgo(mxnet::Context const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const': /home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:568: undefined reference tomxnet::op::CuDNNAlgoReg::Get()'
build/src/operator/convolution_gpu.o: In function mxnet::op::CuDNNConvolutionOp<double>::SelectAlgo(mxnet::Context const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const': /home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:568: undefined reference tomxnet::op::CuDNNAlgoReg::Get()'
build/src/operator/convolution_gpu.o: In function mxnet::op::CuDNNConvolutionOp<mshadow::half::half_t>::SelectAlgo(mxnet::Context const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&)::{lambda(mxnet::RunContext)#1}::operator()(mxnet::RunContext) const': /home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:568: undefined reference tomxnet::op::CuDNNAlgoReg::Get()'
build/src/operator/convolution_gpu.o: In function mxnet::op::CuDNNConvolutionOp<float>::SelectAlgo(mxnet::Context const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&, std::vector<nnvm::TShape, std::allocator<nnvm::TShape> > const&)': /home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:471: undefined reference tomxnet::op::CuDNNAlgoReg::Get()'
/home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:472: undefined reference to mxnet::op::CuDNNAlgoReg::Get()' build/src/operator/convolution_gpu.o:/home/clive/mxnet/src/operator/./cudnn_convolution-inl.h:471: more undefined references tomxnet::op::CuDNNAlgoReg::Get()' follow
collect2: error: ld returned 1 exit status
Makefile:259: recipe for target 'bin/im2rec' failed
make: *** [bin/im2rec] Error 1

What have you tried to solve it?




Owner

piiswrong commented on 7 Jan

git pull && git submodule init && git submodule update && make clean && make -j$(nproc)

Contributor

jingpengw commented on 27 Jan

I got the same error with release version v0.9.3.

This error got fixed after following @piiswrong 's suggestion. It is due to outdated submodule packages, if you manually checkout the submodules, it probably will work too.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值