apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

Failed to build from source #14706

Open 123mw123 opened 5 years ago

123mw123 commented 5 years ago

Makefile:264: WARNING: Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages INFO: nvcc was not found on your path INFO: Using /usr/local/cuda/bin/nvcc as nvcc path Running CUDA_ARCH: -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all cd /home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core; make libdmlc.a USE_SSE=1 config=/home/sj/Documents/extern_libs/mxnet/config.mk; cd /home/sj/Documents/extern_libs/mxnet make[1]: Entering directory '/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core' make[1]: 'libdmlc.a' is up to date. make[1]: Leaving directory '/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core' /usr/local/cuda/bin/nvcc -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" -M -MT build/src/operator/nn/fully_connected_gpu.o src/operator/nn/fully_connected.cu >build/src/operator/nn/fully_connected_gpu.d /usr/local/cuda/bin/nvcc -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" -M -MT build/src/operator/nn/layer_norm_gpu.o src/operator/nn/layer_norm.cu >build/src/operator/nn/layer_norm_gpu.d /usr/local/cuda/bin/nvcc -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" -M -MT build/src/operator/contrib/multibox_detection_gpu.o src/operator/contrib/multibox_detection.cu >build/src/operator/contrib/multibox_detection_gpu.d /usr/local/cuda/bin/nvcc -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" -M -MT build/src/operator/contrib/adaptive_avg_pooling_gpu.o src/operator/contrib/adaptive_avg_pooling.cu >build/src/operator/contrib/adaptive_avg_pooling_gpu.d /usr/local/cuda/bin/nvcc -c -o build/src/operator/contrib/multibox_detection_gpu.o -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" src/operator/contrib/multibox_detection.cu /usr/local/cuda/bin/nvcc -c -o build/src/operator/contrib/adaptive_avg_pooling_gpu.o -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" src/operator/contrib/adaptive_avg_pooling.cu /usr/local/cuda/bin/nvcc -c -o build/src/operator/nn/fully_connected_gpu.o -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" src/operator/nn/fully_connected.cu /usr/local/cuda/bin/nvcc -c -o build/src/operator/nn/layer_norm_gpu.o -std=c++11 -Xcompiler -D_FORCE_INLINES -O3 -ccbin g++ -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=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=[sm_61,compute_61] --fatbin-options -compress-all -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -DNDEBUG=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/ -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dmlc-core/include -fPIC -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/dlpack/include -I/home/sj/Documents/extern_libs/mxnet/3rdparty/nnvm/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -DMSHADOW_USE_CUDNN=1 -I/home/sj/Documents/extern_libs/mxnet/3rdparty/cub -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0" src/operator/nn/layer_norm.cu src/operator/contrib/multibox_detection.cu(56): error: expected a type specifier

src/operator/contrib/multibox_detection.cu(56): error: attributes are not permitted in a function definition

src/operator/contrib/multibox_detection.cu(56): error: unnamed prototyped parameters not allowed when body is present

src/operator/contrib/multibox_detection.cu(56): error: expected a "{"

/usr/local/cuda/include/device_functions.hpp(258): error: identifier "predicate" is undefined in device code

src/operator/contrib/multibox_detection.cu(56): error: expected a type specifier

src/operator/contrib/multibox_detection.cu(56): error: attributes are not permitted in a function definition

src/operator/contrib/multibox_detection.cu(56): error: function "__launch_bounds__" has already been defined

src/operator/contrib/multibox_detection.cu(56): error: unnamed prototyped parameters not allowed when body is present

src/operator/contrib/multibox_detection.cu(56): error: expected a "{"

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramout" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramcls_prob" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramloc_pred" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramtemp_space" is undefined in device code

src/operator/contrib/multibox_detection.cu(67): error: identifier "num_anchors" is undefined in device code

src/operator/contrib/multibox_detection.cu(68): error: identifier "num_classes" is undefined in device code

src/operator/contrib/multibox_detection.cu(87): error: identifier "threshold" is undefined in device code

src/operator/contrib/multibox_detection.cu(97): error: identifier "anchors" is undefined

src/operator/contrib/multibox_detection.cu(105): error: identifier "vx" is undefined in device code

src/operator/contrib/multibox_detection.cu(106): error: identifier "vy" is undefined in device code

src/operator/contrib/multibox_detection.cu(107): error: identifier "vw" is undefined in device code

src/operator/contrib/multibox_detection.cu(108): error: identifier "vh" is undefined in device code

src/operator/contrib/multibox_detection.cu(113): error: identifier "clip" is undefined in device code

src/operator/contrib/multibox_detection.cu(127): error: identifier "nms_threshold" is undefined

src/operator/contrib/multibox_detection.cu(179): error: identifier "nms_topk" is undefined

src/operator/contrib/multibox_detection.cu(195): error: identifier "force_suppress" is undefined in device code

src/operator/contrib/multibox_detection.cu(198): error: identifier "nms_threshold" is undefined in device code

src/operator/contrib/multibox_detection.cu(56): error: expected a type specifier

src/operator/contrib/multibox_detection.cu(56): error: attributes are not permitted in a function definition

src/operator/contrib/multibox_detection.cu(56): error: function "__launch_bounds__" has already been defined

src/operator/contrib/multibox_detection.cu(56): error: unnamed prototyped parameters not allowed when body is present

src/operator/contrib/multibox_detection.cu(56): error: expected a "{"

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramout" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramcls_prob" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramloc_pred" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramtemp_space" is undefined in device code

src/operator/contrib/multibox_detection.cu(67): error: identifier "num_anchors" is undefined in device code

src/operator/contrib/multibox_detection.cu(68): error: identifier "num_classes" is undefined in device code

src/operator/contrib/multibox_detection.cu(87): error: identifier "threshold" is undefined in device code

src/operator/contrib/multibox_detection.cu(97): error: identifier "anchors" is undefined

src/operator/contrib/multibox_detection.cu(105): error: identifier "vx" is undefined in device code

src/operator/contrib/multibox_detection.cu(106): error: identifier "vy" is undefined in device code

src/operator/contrib/multibox_detection.cu(107): error: identifier "vw" is undefined in device code

src/operator/contrib/multibox_detection.cu(108): error: identifier "vh" is undefined in device code

src/operator/contrib/multibox_detection.cu(113): error: identifier "clip" is undefined in device code

src/operator/contrib/multibox_detection.cu(127): error: identifier "nms_threshold" is undefined

src/operator/contrib/multibox_detection.cu(179): error: identifier "nms_topk" is undefined

src/operator/contrib/multibox_detection.cu(195): error: identifier "force_suppress" is undefined in device code

src/operator/contrib/multibox_detection.cu(198): error: identifier "nms_threshold" is undefined in device code

src/operator/contrib/multibox_detection.cu(56): error: expected a type specifier

src/operator/contrib/multibox_detection.cu(56): error: attributes are not permitted in a function definition

src/operator/contrib/multibox_detection.cu(56): error: function "__launch_bounds__" has already been defined

src/operator/contrib/multibox_detection.cu(56): error: unnamed prototyped parameters not allowed when body is present

src/operator/contrib/multibox_detection.cu(56): error: expected a "{"

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramout" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramcls_prob" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramloc_pred" is undefined in device code

src/operator/contrib/multibox_detection.cu(63): error: identifier "__val_paramtemp_space" is undefined in device code

src/operator/contrib/multibox_detection.cu(67): error: identifier "num_anchors" is undefined in device code

src/operator/contrib/multibox_detection.cu(68): error: identifier "num_classes" is undefined in device code

src/operator/contrib/multibox_detection.cu(87): error: identifier "threshold" is undefined in device code

src/operator/contrib/multibox_detection.cu(97): error: identifier "anchors" is undefined

src/operator/contrib/multibox_detection.cu(105): error: identifier "vx" is undefined in device code

src/operator/contrib/multibox_detection.cu(106): error: identifier "vy" is undefined in device code

src/operator/contrib/multibox_detection.cu(107): error: identifier "vw" is undefined in device code

src/operator/contrib/multibox_detection.cu(108): error: identifier "vh" is undefined in device code

src/operator/contrib/multibox_detection.cu(113): error: identifier "clip" is undefined in device code

src/operator/contrib/multibox_detection.cu(127): error: identifier "nms_threshold" is undefined

src/operator/contrib/multibox_detection.cu(179): error: identifier "nms_topk" is undefined

src/operator/contrib/multibox_detection.cu(195): error: identifier "force_suppress" is undefined in device code

src/operator/contrib/multibox_detection.cu(198): error: identifier "nms_threshold" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/tensor.h(64): error: operand of "*" must be a pointer

72 errors detected in the compilation of "/tmp/tmpxft_000008da_00000000-26_multibox_detection.compute_30.cpp3.i". Makefile:435: recipe for target 'build/src/operator/contrib/multibox_detection_gpu.o' failed make: [build/src/operator/contrib/multibox_detection_gpu.o] Error 1 make: Waiting for unfinished jobs.... /home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/usr/local/cuda/include/device_functions.hpp(258): error: identifier "predicate" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a type specifier

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: attributes are not permitted in a function definition

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: function "__launch_bounds__" has already been defined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: unnamed prototyped parameters not allowed when body is present

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(126): error: expected a "{"

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_paramplan" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(127): error: identifier "__val_parameshape" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "dst" is undefined

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/././././cuda/tensor_gpu-inl.cuh(150): error: identifier "scale" is undefined in device code

/home/sj/Documents/extern_libs/mxnet/3rdparty/mshadow/mshadow/tensor.h(64): error: operand of "*" must be a pointer

67 errors detected in the compilation of "/tmp/tmpxft_000008e8_00000000-26_fully_connected.compute_30.cpp3.i". Makefile:435: recipe for target 'build/src/operator/nn/fully_connected_gpu.o' failed make: *** [build/src/operator/nn/fully_connected_gpu.o] Error 1 src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: expected a type specifier

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: attributes are not permitted in a function definition

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: unnamed prototyped parameters not allowed when body is present

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: expected a "{"

/usr/local/cuda/include/device_functions.hpp(258): error: identifier "predicate" is undefined in device code

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: expected a type specifier

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: attributes are not permitted in a function definition

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: function "__launch_bounds__" has already been defined

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: unnamed prototyped parameters not allowed when body is present

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(77): error: expected a "{"

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(81): error: identifier "__val_parambig_shape0" is undefined in device code

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(81): error: identifier "__val_paramsmall_shape" is undefined in device code

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(81): error: identifier "__val_parambig_shape" is undefined in device code

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(81): error: identifier "__val_parambig_stride" is undefined in device code

src/operator/nn/./../tensor/./broadcast_reduce-inl.cuh(83): internal error: assertion failed at: "../../edg/EDG_4.10/src/c_gen_be.c", line 1626

14 errors and 1 catastrophic error detected in the compilation of "/tmp/tmpxft_000008ef_00000000-26_layer_norm.compute_30.cpp3.i". Compilation aborted. Makefile:435: recipe for target 'build/src/operator/nn/layer_norm_gpu.o' failed make: *** [build/src/operator/nn/layer_norm_gpu.o] Error 1

gcc version : gcc (Ubuntu 4.8.5-4ubuntu8~16.04.1) 4.8.5 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.

g++ version: g++ (Ubuntu 4.8.5-4ubuntu8~16.04.1) 4.8.5 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

I built mxnet from souce on google colab using same gcc,g++ and cuda versions. I didn't get any error on colab but I am getting the above error while building mxnet from source on ubuntu 18.04

frankfliu commented 5 years ago

@mxnet-label-bot add [build, CI]

hewujunTDT commented 5 years ago

I have the same question