You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/09/06 01:37:09 UTC

[GitHub] rahul003 commented on issue #7685: Fix for hang in depthwise convolution for CUDA 9

rahul003 commented on issue #7685: Fix for hang in depthwise convolution for CUDA 9
URL: https://github.com/apache/incubator-mxnet/pull/7685#issuecomment-327349281
 
 
   Hello, 
   
   Do you know why this code throws up these warnings? The variable mask is actually used. How do we resolve these warnings?
   
   ```
   usr/local/cuda/bin/nvcc -c -o build/src/operator/convolution_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/ubuntu/incubator-mxnet/mshadow/ -I/home/ubuntu/incubator-mxnet/dmlc-core/include -fPIC -I/home/ubuntu/incubator-mxnet/nnvm/include -I/home/ubuntu/incubator-mxnet/dlpack/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -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/local/include/opencv -I/usr/local/include -fopenmp -DMXNET_USE_LAPACK -DMSHADOW_USE_CUDNN=1  -I/home/ubuntu/incubator-mxnet/cub -DMXNET_USE_NVRTC=0" src/operator/convolution.cu
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
             detected during:
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices,kAccumPixels>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8, kAccumPixels=32]" 
   (669): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall<DType,kBlockSlices>(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, int, const DType *, const DType *, DType *) [with DType=float, kBlockSlices=8]" 
   (709): here
               instantiation of "__nv_bool tf::depthwise_conv::TryLaunchDepthwiseConv2dBackwardFilterGPUSmall(mshadow::Stream<mshadow::gpu> *, tf::depthwise_conv::DepthwiseArgs, const DType *, const DType *, DType *) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(257): here
               instantiation of "void mxnet::op::depthwise_conv::DepthwiseConv2dBackwardFilterGpu<DType>(mshadow::Stream<mshadow::gpu> *, const tf::depthwise_conv::DepthwiseArgs &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(338): here
               instantiation of "void mxnet::op::DepthwiseConvolutionOp<DType>::Backward(const mxnet::OpContext &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &, 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>> &, const std::vector<mxnet::TBlob, std::allocator<mxnet::TBlob>> &) [with DType=float]" 
   src/operator/./depthwise_convolution-inl.h(61): here
               instantiation of "mxnet::op::DepthwiseConvolutionOp<DType>::DepthwiseConvolutionOp(const mxnet::op::ConvolutionParam &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &, const std::vector<mxnet::TShape, std::allocator<mxnet::TShape>> &) [with DType=float]" 
   src/operator/convolution.cu(58): here
   
   src/operator/././depthwise_convolution_tf.cuh(526): warning: variable "mask" was declared but never referenced
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services