master branch cannot build on centos 7 with cuda-8.0
Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues.
If the issue is non-technical, feel free to present the information in what you believe is the best form.
Description
master branch cannot build on my machine after commit 9d3ce81ac23dae15e538242e02d8a2b2e76f5b1f @mseeger . Before that commit, it can build correctly on my machine.
Seems that the error message is similar in https://github.com/apache/incubator-mxnet/issues/8333
Environment info (Required)
----------System Info----------
('Platform :', 'Linux-3.10.0-514.10.2.el7.x86_64-x86_64-with-centos-7.3.1611-Core')
('system :', 'Linux')
('node :', 'model-gpu00')
('release :', '3.10.0-514.10.2.el7.x86_64')
('version :', '#1 SMP Fri Mar 3 00:04:05 UTC 2017')
----------Hardware Info----------
('machine :', 'x86_64')
('processor :', 'x86_64')
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 40
On-line CPU(s) list: 0-39
Thread(s) per core: 2
Core(s) per socket: 10
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
Stepping: 1
CPU MHz: 1264.484
BogoMIPS: 4417.67
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0-9,20-29
NUMA node1 CPU(s): 10-19,30-39
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio): gcc
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
MXNet commit hash:
f9e25b47c0faec07e940fedb718df2f38dd925b4
Build config:
make -j USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/home/hanfeng/local/cuda USE_OPENCV=0
Error Message:
At first, lots of warning in mshadow,
src/operator/tensor/./../mshadow_op.h(1073): warning: floating-point value does not fit in required integral type
detected during:
<Many files in mshadow>
/home/hanfeng/zyh/mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
/home/hanfeng/zyh/mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
2 errors detected in the compilation of "/tmp/tmpxft_00003079_00000000-24_activation.compute_30.cpp2.i".
make: *** [build/src/operator/activation_gpu.o] Error 2
Minimum reproducible example
Steps to reproduce
(Paste the commands you ran that produced the error.)
1. 2.
What have you tried to solve it?
1. 2.
@mseeger
The warnings relate to smooth_l1_loss in mshadow_op.h. What I did there, is to replace constants like 0.5f by DType(0.5f), to make it look similar to elsewhere.
This can be reverted.
I am not enough an expert on CUDA or mshadow to understand what problems this is causing, and I also don't have a clue about "centos 7 with cuda-8.0". After all, lots of GPU unit tests work without any issues.
But the first attempt would be to replace smooth_l1_loss and smooth_l1_gradient in mshadow_op.h by the old code, and see whether that helps.
The line in question in tensor_gpu-inl.cuh is:
Saver::Save(dst.REval(y, x), exp.Eval(y, x));
Is this the complete error you are getting? Why can't I see what DstPlan or Plan are? Or for what arguments dst or exp this is called when it fails?
Thanks for your suggestions.
Seems wired. It can build successfully on ubuntu. Why centos cannot?
Yes, the error messages are complete.
Warnings are not fixed by reverting smooth_l1, I change these codes to
struct smooth_l1_loss {
// a is x, b is sigma2
template<typename DType>
MSHADOW_XINLINE static DType Map(DType a, DType b) {
b *= b;
if (a > (1.0f) / b) {
return a - (0.5f) / b;
} else if (a < (-1.0f) / b) {
return -a - (0.5f) / b;
} else {
return (0.5f) * a * a * b;
}
}
}; // struct smooth_l1_loss
struct smooth_l1_gradient {
// a is x, b is sigma2
template<typename DType>
MSHADOW_XINLINE static DType Map(DType a, DType b) {
b *= b;
if (a > (1.0f) / b) {
return (1.0f);
} else if (a < (-1.0f) / b) {
return DType(-1.0f);
} else {
return b * a;
}
}
}; // struct smooth_l1_derivative
Below is the whole chunk of warning and error messages,
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
src/operator/tensor/./../mshadow_op.h(1093): warning: floating-point value does not fit in required integral type
detected during:
instantiation of "DType mxnet::op::mshadow_op::smooth_l1_gradient::Map(DType, DType) [with DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mxnet::op::mshadow_op::smooth_l1_gradient, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::ScalarExp<uint8_t>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(131): here
instantiation of "DType mshadow::expr::Plan<mshadow::expr::BinaryMapExp<OP, TA, TB, DType, etype>, DType>::Eval(mshadow::index_t, mshadow::index_t) const [with OP=mshadow::op::mul, TA=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, TB=mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, etype=1, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): here
instantiation of "void mshadow::cuda::MapPlanProc<Saver,DstPlan,Plan,block_dim_bits>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan, int) [with Saver=mshadow::sv::saveto, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>, block_dim_bits=8]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(83): here
instantiation of "void mshadow::cuda::MapPlanKernel<Saver,block_dim_bits,DstPlan,Plan>(DstPlan, mshadow::index_t, mshadow::Shape<2>, Plan) [with Saver=mshadow::sv::saveto, block_dim_bits=8, DstPlan=mshadow::expr::Plan<mshadow::Tensor<mxnet::gpu, 1, uint8_t>, uint8_t>, Plan=mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, uint8_t>]"
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(109): here
instantiation of "void mshadow::cuda::MapPlan<Saver,DstExp,E,DType>(mshadow::expr::Plan<DstExp, DType>, const mshadow::expr::Plan<E, DType> &, mshadow::Shape<2>, cudaStream_t) [with Saver=mshadow::sv::saveto, DstExp=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, DType=uint8_t]"
/home/hanfeng/zyh/build/mshadow/mshadow/./tensor_gpu-inl.h(115): here
instantiation of "void mshadow::MapExp<Saver,R,dim,DType,E,etype>(mshadow::TRValue<R, mshadow::gpu, dim, DType> *, const mshadow::expr::Exp<E, DType, etype> &) [with Saver=mshadow::sv::saveto, R=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, dim=1, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/././expr_engine-inl.h(446): here
instantiation of "void mshadow::expr::ExpEngine<SV, RV, DType>::Eval(RV *, const mshadow::expr::Exp<E, DType, 1> &) [with SV=mshadow::sv::saveto, RV=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>]"
/home/hanfeng/zyh/build/mshadow/mshadow/./expression.h(167): here
instantiation of "Container &mshadow::expr::RValueExp<Container, DType>::__assign(const mshadow::expr::Exp<E, DType, etype> &) [with Container=mshadow::Tensor<mxnet::gpu, 1, uint8_t>, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
/home/hanfeng/zyh/build/mshadow/mshadow/tensor.h(609): here
instantiation of "mshadow::Tensor<Device, 1, DType> &mshadow::Tensor<Device, 1, DType>::operator=(const mshadow::expr::Exp<E, DType, etype> &) [with Device=mxnet::gpu, DType=uint8_t, E=mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::smooth_l1_gradient, mshadow::Tensor<mxnet::gpu, 1, uint8_t>, mshadow::expr::ScalarExp<uint8_t>, uint8_t, 1>, uint8_t, 1>, etype=1]"
src/operator/tensor/./elemwise_binary_scalar_op.h(288): here
instantiation of "void mxnet::op::BinaryScalarOp::Backward<xpu,OP>(const nnvm::NodeAttrs &, const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with xpu=mxnet::gpu, OP=mxnet::op::mshadow_op::smooth_l1_gradient]"
src/operator/tensor/elemwise_binary_scalar_op_extended.cu(68): here
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
/home/hanfeng/zyh/build/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
2 errors detected in the compilation of "/tmp/tmpxft_00004e32_00000000-24_activation.compute_30.cpp2.i".
make: *** [build/src/operator/activation_gpu.o] Error 2
Seems that @wa1618i got the same problem in https://github.com/apache/incubator-mxnet/issues/8333. Have you got any solutions so far? @wa1618i
The error messages seem to depend on mshadow_op.h only through smooth_l1_gradient. And that code is really independent of the changes I did.
Are you sure this worked before my changes?
Another thing: The code for smooth_l1_gradient does not do anything useful for integral DType. The error messages are about using it for DType = uint8_t. Seems to make very little sense to me.
@mseeger Yes, if I checkout to 9f97dac76e43b2ca0acb09a4ff96d416e9edea60, the one just before your commit. It can build successfully on my machine without these warnings. I also have no idea where uint8_t comes from.
Any news here? Did you try with the latest master?
You could also try replacing smooth_l1_* with a trivial function, returning DType(0). Does this compile?
I tried the latest master but it fails too.
I replaced smooth_l1_* with returning DType(0), the warnings disappear, but there are still error message as before,
/home/hanfeng/zyh/mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
/home/hanfeng/zyh/mxnet/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
2 errors detected in the compilation of "/tmp/tmpxft_0000964a_00000000-24_activation.compute_30.cpp2.i".
make: *** [build/src/operator/activation_gpu.o] Error 2
Hello, does your problem persist? We have just pushed a new PR, changing mshadow_op.h once more, and also smooth_l1_*. Please try again.
@mseeger Thanks! The issue is solved.
@mseeger Have you figured out what is the cause of this problem? I encountered exactly same error during CI compilation in #8582
/workspace/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
I can't reproduce it on ubuntu, and cannot locate where's the origin of this error in source code.
Hello, The issue was closed, because the person who raised it figured it out. Please contact this person.
On Nov 8, 2017 11:42 PM, "Joshua Z. Zhang" [email protected] wrote:
@mseeger https://github.com/mseeger Have you figured out what is the cause of this problem? I encountered exactly same error during CI compilation in #8582 https://github.com/apache/incubator-mxnet/pull/8582
/workspace/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(75): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
I can't reproduce it on ubuntu, and cannot locate where's the origin of this error in source code.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/apache/incubator-mxnet/issues/8338#issuecomment-342985714, or mute the thread https://github.com/notifications/unsubscribe-auth/AGNRoiRdtgmaFtIC9Hr50j1fcj2yqljNks5s0i4-gaJpZM4P-A3V .
@mseeger The guy reported it's solved after your PR, and I think it's related to mshadow_op.h, that's why I am reaching out to you, could you please tell me if you have any clue on this? Thanks.
Please contact the person who closed this issue, because it was solved for him.
Reopening.
Hi. @mseeger would you please help @zhreshold from our team on this? From the comment it looks like you made the change so you'd likely be better equipped to help. Do correct me if that's not the case. Thank you.
I have contacted @ZiyueHuang this seems to be still unsolved for unknown number of math/mshadow ops, which is also reported by @sxjscience . Can you have a look at this problem since it's super hard to figure out what's going wrong with these templates.
Sorry I have no idea what is going on here. The errors you report do not happen in any of the tests on any system we test on. The warnings reported above should be gone.
The error is reported in some tensor_gpu-inl.cuh(75) in mshadow, and not in mshadow_op.h. It is also not clear to me what real piece of code is raising the error (.cuh is a header file, containing templates). The only function in mshadow_op.h that appears in the errors, is smooth_l1_*. The macros do not affect this function, it could well be rolled back (but it seems this does not fix the issue).
Somebody who knows what the templates in tensor_gpu-inl.cuh(75) are doing (a mshadow developer) would be the right person to ask.
The code in mshadow_op.h before my changes was broken in many ways, not just that the double type was not supported. I cannot work on your setup, because it is not covered by our tests.
I don't get any problem with my local machine and ec2 instances as well. However, it fails on CI, e.g. windows or some other compilers. @piiswrong Do you know how to locate the error?
@zhreshold In my case, the error occurs when I compile the code with some of my own operators. The code could compile if I remove these operators.