Comments (7)
finally I past the zero_even_op.py test, get rid of the
OSError: /home/zhang-u16/DensePose/build/libcaffe2_detectron_custom_ops_gpu.so: undefined symbol: _ZN6caffe219CPUOperatorRegistryB5cxx11Ev
my final settings:
- `-- Found CUDA: /usr/local/cuda-8.0 (found version "8.0")
- -- Caffe2: CUDA detected: 8.0
- -- Caffe2: CUDA nvcc is: /usr/local/cuda-8.0/bin/nvcc
- -- Caffe2: CUDA toolkit directory: /usr/local/cuda-8.0
- -- Caffe2: Header version is: 8.0
- -- Found CUDNN: /home/zhang-u16/anaconda3/pkgs/cudnn-7.6.0-cuda9.0_0/include
- -- Found cuDNN: v7.6.0 (include: /home/my-u16/anaconda3/pkgs/cudnn-7.6.0-cuda9.0_0/include, library: /home/zhang-u16/anaconda3/pkgs/cudnn-7.6.0-cuda9.0_0/lib/libcudnn.so.7.6.0)
- -- Autodetected CUDA architecture(s): 6.1 6.1 6.1
- -- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
- -- Summary:
- -- CMake version : 3.14.0
- -- CMake command : /home/my-u16/anaconda3/envs/densepose/bin/cmake
- -- System name : Linux
- -- C++ compiler : /home/my-u16/gcc-4.9.2/build/bin/g++
- -- C++ compiler version : 4.9.2
- -- CXX flags : -std=c++11 -O2 -fPIC -Wno-narrowing
- -- Caffe2 version : 1.1.0
- -- Caffe2 include path : /home/my-u16/anaconda3/envs/densepose/lib/python3.7/site-packages/torch/include
- -- Caffe2 found CUDA : True
- -- CUDA version : 8.0
- -- CuDNN version : 7.6.0
- -- Configuring done
- -- Generating done
`
the bug was from g++ 5.4.0. since I have two gcc installed, to tell cmake(3.14.0 from conda install cmake) use the version of 4.9.2, I did:
cmake -DCMAKE_C_COMPILER="/home/my-u16/gcc-4.9.2/build/bin/gcc" -DCMAKE_CXX_COMPILER="/home/my-u16/gcc-4.9.2/build/bin/g++" ..
note that, set compiler path in CMakeLists.txt doesn't work for me, e.g.
#SET(CMAKE_CXX_COMPILER "/home/zhang-u16/gcc-4.9.2/build/bin/g++")
PS: this cmke-gui cannot work, since the GLIBCXX_3.4.21' not found
problem,
remember to do make clean // rm CMakeCache.txt // rm -r build
before remake densepose.
from densepose_installation.
Thanks for the help. I was able to finally compile custom operator using using cmake from conda itself.
conda install cmake
from densepose_installation.
Which version of cmake
did you install? It seems that your installed cmake
is not compatible with your installed gcc
.
from densepose_installation.
Should I build cmake from source or should I install cmake from anaconda. The system cmake is currently at 3.5.1 version
Thanks
from densepose_installation.
You can try to download the cmake zip file at specific version from the official website. FYI, I used cmake-3.8.2 to build DensePose
from densepose_installation.
i met the same problem, I did conda install cmake, and it is 3.14.0 in conda, but still the same error of missing GLIBCXX_3.4.21'
from densepose_installation.
Thanks for the help. I was able to finally compile custom operator using using cmake from conda itself.
conda install cmake
may I ask which cmake version were you using in your conda
from densepose_installation.
Related Issues (12)
- Issue while testing $DESNEPOSE/detectron/tests/test_zero_even_op.py HOT 1
- I encountered a problem while make ops HOT 1
- issues occured when running test_spatial_narrow_as_op.py HOT 2
- Tutorial
- Detectron only automatically caches URLs in the Detectron S3 bucket HOT 2
- Missing math folder HOT 1
- a question of make ops HOT 17
- Some changes I noticed while installing for pytorch-1.1.0 HOT 1
- cannot find lcaffe2_library error in pytorch 1.2 HOT 2
- issue when running python $DENSEPOSE/detectron/tests/test_zero_even_op.py HOT 5
- cannot compile with libprotobuf 3.6.1 gcc 4.9.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from densepose_installation.