Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile with gpu error #84

Closed
zh794390558 opened this issue Dec 17, 2020 · 1 comment
Closed

compile with gpu error #84

zh794390558 opened this issue Dec 17, 2020 · 1 comment

Comments

@zh794390558
Copy link
Contributor

-- 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
@msnh2012
Copy link
Owner

Please turn "USE_CUDNN" option on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants