msnh2012 / Msnhnet

🔥 (yolov3 yolov4 yolov5 unet ...)A mini pytorch inference framework which inspired from darknet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compile with gpu error

zh794390558 opened this issue · comments

-- The CXX compiler identification is GNU 7.4.0
-- The C compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- OS is Linux-3.10.0-957.el7.x86_64
-- Use OMP
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found Openmp
-- The CUDA compiler identification is NVIDIA 10.0.130
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found cuBlas: /usr/local/cuda/include  
-- Use x86_64 arch
x86_64
shared--------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp-data/zhanghui/Msnhnet/build
luban@k8s-deploy-olbenz-1566810569345-7cc55777cd-mvdlp:/tmp-data/zhanghui/Msnhnet$ cmake --build build
Scanning dependencies of target Msnhnet
[  0%] Building CXX object CMakeFiles/Msnhnet.dir/src/core/MsnhBlas.cpp.o
[  1%] Building CXX object CMakeFiles/Msnhnet.dir/src/core/MsnhGemm.cpp.o
[  2%] Building CXX object CMakeFiles/Msnhnet.dir/src/core/MsnhMemoryManager.cpp.o
[  3%] Building CXX object CMakeFiles/Msnhnet.dir/src/io/MsnhIO.cpp.o
[  4%] Building CXX object CMakeFiles/Msnhnet.dir/src/io/MsnhParser.cpp.o
[  4%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhActivationLayer.cpp.o
[  5%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhActivations.cpp.o
[  6%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhActivationsAvx.cpp.o
[  7%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhActivationsNeon.cpp.o
[  8%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhAddBlockLayer.cpp.o
[  9%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhBaseLayer.cpp.o
[  9%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhBatchNormLayer.cpp.o
[ 10%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhConcatBlockLayer.cpp.o
[ 11%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhConnectedLayer.cpp.o
[ 12%] Building CXX object CMakeFiles/Msnhnet.dir/src/layers/MsnhConvolutionalLayer.cpp.o
/tmp-data/zhanghui/Msnhnet/src/layers/MsnhConvolutionalLayer.cpp: In member function ‘virtual void Msnhnet::ConvolutionalLayer::loadAllWeigths(std::vector<float>&)’:
/tmp-data/zhanghui/Msnhnet/src/layers/MsnhConvolutionalLayer.cpp:1153:23: error: ‘class Msnhnet::ConvolutionalLayer’ has no member named ‘_gpuWeightsFp16’; did you mean ‘_gpuWeights’?
                 this->_gpuWeightsFp16   = this->_shareLayer->_gpuWeightsFp16;
                       ^~~~~~~~~~~~~~~
                       _gpuWeights
/tmp-data/zhanghui/Msnhnet/src/layers/MsnhConvolutionalLayer.cpp:1153:62: error: ‘class Msnhnet::ConvolutionalLayer’ has no member named ‘_gpuWeightsFp16’; did you mean ‘_gpuWeights’?
                 this->_gpuWeightsFp16   = this->_shareLayer->_gpuWeightsFp16;
                                                              ^~~~~~~~~~~~~~~
                                                              _gpuWeights
CMakeFiles/Msnhnet.dir/build.make:264: recipe for target 'CMakeFiles/Msnhnet.dir/src/layers/MsnhConvolutionalLayer.cpp.o' failed
make[2]: *** [CMakeFiles/Msnhnet.dir/src/layers/MsnhConvolutionalLayer.cpp.o] Error 1
CMakeFiles/Makefile2:280: recipe for target 'CMakeFiles/Msnhnet.dir/all' failed
make[1]: *** [CMakeFiles/Msnhnet.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Please turn "USE_CUDNN" option on.