You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/21 03:33:18 UTC

[GitHub] ghgggg opened a new issue #12267: some errors when extracting feature with mxnet c++ api in windows10 in gpu mode

ghgggg opened a new issue #12267: some errors when  extracting feature with mxnet c++ api in windows10 in gpu mode
URL: https://github.com/apache/incubator-mxnet/issues/12267
 
 
   
   
   ## Description
   in gpu mode , the code below 
   NDArray input(Shape(1, img.channels(), img.rows, img.cols), Context(kGPU, 0), false);  occurs error .
   and if I modify it as below 
   NDArray input(Shape(1, img.channels(), img.rows, img.cols), Context(kGPU, 0), true);  it will be ok, but
   the codes below occurs error.
   executor = net.SimpleBind(ctx, args_map, map<string, NDArray>(), map<string, OpReqType>(), aux_map);
   				
   ## Environment info 
   
   ----------Python Info----------
   ('Version      :', '2.7.13')
   ('Compiler     :', 'MSC v.1500 64 bit (AMD64)')
   ('Build        :', ('v2.7.13:a06454b1afa1', 'Dec 17 2016 20:53:40'))
   ('Arch         :', ('64bit', 'WindowsPE'))
   ------------Pip Info-----------
   ('Version      :', '10.0.1')
   ('Directory    :', 'C:\\Python27\\lib\\site-packages\\pip')
   ----------MXNet Info-----------
   ('Version      :', '1.2.0')
   ('Directory    :', 'C:\\Python27\\lib\\site-packages\\mxnet-1.2.0-py2.7.egg\\mxnet')
   Hashtag not found. Not installed from pre-built package.
   ----------System Info----------
   ('Platform     :', 'Windows-10-10.0.17134')
   ('system       :', 'Windows')
   ('node         :', 'DESKTOP-VLGIO03')
   ('release      :', '10')
   ('version      :', '10.0.17134')
   ----------Hardware Info----------
   ('machine      :', 'AMD64')
   ('processor    :', 'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel')
   Name
   Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
   
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0020 sec, LOAD: 4.9460 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0010 sec, LOAD: 5.5290 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0000 sec, LOAD: 1.4930 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0040 sec, LOAD: 0.7540 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1930 sec, LOAD: 1.1380 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.5940 sec, LOAD: 0.8230 sec.
   
   
   Package used (Python/R/Scala/Julia):
   (I'm using  Python Package to install mxnet and build the cpp package)
   
   
   
   ## Build info (Required if built from source)
   build is  ok
   Compiler  is visual studio 2015
   MXNet commit hash:
   (Paste the output of `git rev-parse HEAD` here.)
   
   Build config:
   (Paste the content of config.mk, or the build command.)
   im using cmake to build the project and the content as below
   
   mxnet_option(USE_CUDA             "Build with CUDA support"   ON)
   mxnet_option(USE_OLDCMAKECUDA     "Build with old cmake cuda" OFF)
   mxnet_option(USE_NCCL             "Use NVidia NCCL with CUDA" OFF)
   mxnet_option(USE_OPENCV           "Build with OpenCV support" ON)
   mxnet_option(USE_OPENMP           "Build with Openmp support" ON)
   mxnet_option(USE_CUDNN            "Build with cudnn support"  ON) # one could set CUDNN_ROOT for search path
   mxnet_option(USE_SSE              "Build with x86 SSE instruction support" ON)
   mxnet_option(USE_LAPACK           "Build with lapack support" ON IF NOT MSVC)
   mxnet_option(USE_MKL_IF_AVAILABLE "Use MKL if found" ON)
   mxnet_option(USE_MKLML_MKL        "Use MKLDNN variant of MKL (if MKL found)" ON IF USE_MKL_IF_AVAILABLE AND UNIX AND (NOT APPLE))
   mxnet_option(USE_MKLDNN           "Use MKLDNN variant of MKL (if MKL found)" ON IF USE_MKL_IF_AVAILABLE AND UNIX AND (NOT APPLE))
   mxnet_option(USE_OPERATOR_TUNING  "Enable auto-tuning of operators" ON IF NOT MSVC)
   mxnet_option(USE_GPERFTOOLS       "Build with GPerfTools support (if found)" ON)
   mxnet_option(USE_JEMALLOC         "Build with Jemalloc support"   ON)
   mxnet_option(USE_PROFILER         "Build with Profiler support"   ON)
   mxnet_option(USE_DIST_KVSTORE     "Build with DIST_KVSTORE support" OFF)
   mxnet_option(USE_PLUGINS_WARPCTC  "Use WARPCTC Plugins" OFF)
   mxnet_option(USE_PLUGIN_CAFFE     "Use Caffe Plugin" OFF)
   mxnet_option(USE_CPP_PACKAGE      "Build C++ Package" ON)
   mxnet_option(USE_MXNET_LIB_NAMING "Use MXNet library naming conventions." ON)
   mxnet_option(USE_GPROF            "Compile with gprof (profiling) flag" OFF)
   mxnet_option(USE_CXX14_IF_AVAILABLE "Build with C++14 if the compiler supports it" OFF)
   mxnet_option(USE_VTUNE            "Enable use of Intel Amplifier XE (VTune)" OFF) # one could set VTUNE_ROOT for search path
   mxnet_option(ENABLE_CUDA_RTC      "Build with CUDA runtime compilation support" ON)
   mxnet_option(BUILD_CPP_EXAMPLES   "Build cpp examples" ON)
   mxnet_option(INSTALL_EXAMPLES     "Install the example source files." OFF)
   mxnet_option(USE_SIGNAL_HANDLER   "Print stack traces on segfaults." OFF)
   mxnet_option(USE_F16C   "Print stack traces on segfaults." OFF)
   
   ## Error Message:
   (Paste the complete error message, including stack trace.)
   no info printed and jump to the 
   #if DMLC_LOG_BEFORE_THROW
       LOG(ERROR) << log_stream_.str();
   #endif
       throw Error(log_stream_.str());
     }
   call stack below:
    	KernelBase.dll!00007fff999fa388()	Unknown
    	vcruntime140.dll!00007fff936d44f2()	Unknown
   >	mxnet-extract-feature.exe!dmlc::LogMessageFatal::~LogMessageFatal() Line 397	C++
    	mxnet-extract-feature.exe!mxnet::cpp::NDArray::NDArray(const mxnet::cpp::Shape & shape, const mxnet::cpp::Context & context, bool) Line 59	C++
    	mxnet-extract-feature.exe!MxSpace::FeatureExtractor::Forward(const cv::_InputArray & _img) Line 46	C++
    	mxnet-extract-feature.exe!main() Line 189	C++
    	[External Code]	
   
   
   
   ## Minimum reproducible example
   (If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
   error 1:  NDArray input(Shape(1, img.channels(), img.rows, img.cols), Context(kGPU, 0), false);
   error 2: if NDArray input(Shape(1, img.channels(), img.rows, img.cols), Context(kGPU, 0), true); and error 
              executor = net.SimpleBind(ctx, args_map, map<string, NDArray>(), map<string, OpReqType>(), aux_map);
   
   
   
   ## What have you tried to solve it?
   
   1.   i had tried first allocate memory in cpu and then copy datas from cpu to gpu
   
   
   i know a little about mxnet , anyone could help me to solve it?  Thanks a lot.
   
   

----------------------------------------------------------------
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