Closed
Description
Hello! When installing the extensions, an error happens.
The version: gcc=5.4, cuda=11.1, python=3.7, pytorch=1.8.0, setuptools=62.1.0
I can't import chamfer package. Has it installed incompletely? I don't know the problems from which they are derive.
Thanks for your helps.
1. chamfer installing loggs
running install
running bdist_egg
running egg_info
creating chamfer.egg-info
writing chamfer.egg-info/PKG-INFO
writing dependency_links to chamfer.egg-info/dependency_links.txt
writing top-level names to chamfer.egg-info/top_level.txt
writing manifest file 'chamfer.egg-info/SOURCES.txt'
reading manifest file 'chamfer.egg-info/SOURCES.txt'
writing manifest file 'chamfer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'chamfer' extension
creating /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build
creating /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37
Emitting ninja build file /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
[1/2] c++ -MMD -MF /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer_cuda.o.d -pthread -B /HOME/scz1454/.conda/envs/hjc_pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/TH -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/THC -I/data/apps/cuda/11.1/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/include/python3.7m -c -c /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/chamfer_cuda.cpp -o /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/chamfer_cuda.cpp:9:
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)
^
[2/2] /data/apps/cuda/11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer.o.d -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/TH -I/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/THC -I/data/apps/cuda/11.1/include -I/HOME/scz1454/.conda/envs/hjc_pytorch/include/python3.7m -c -c /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/chamfer.cu -o /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
creating build/lib.linux-x86_64-cpython-37
g++ -pthread -B /HOME/scz1454/.conda/envs/hjc_pytorch/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /HOME/scz1454/.conda/envs/hjc_pytorch/compiler_compat -L/HOME/scz1454/.conda/envs/hjc_pytorch/lib -Wl,-rpath=/HOME/scz1454/.conda/envs/hjc_pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer.o /data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/chamfer_dist/build/temp.linux-x86_64-cpython-37/chamfer_cuda.o -L/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/lib -L/data/apps/cuda/11.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-cpython-37/chamfer.cpython-37m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-cpython-37/chamfer.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for chamfer.cpython-37m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/chamfer.py to chamfer.cpython-37.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying chamfer.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying chamfer.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying chamfer.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying chamfer.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.chamfer.cpython-37: module references __file__
creating dist
creating 'dist/chamfer-2.0.0-py3.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing chamfer-2.0.0-py3.7-linux-x86_64.egg
creating /data/run01/scz1454/hongjiacheng/Point-BERT-master/.local/lib/python3.7/site-packages/chamfer-2.0.0-py3.7-linux-x86_64.egg
Extracting chamfer-2.0.0-py3.7-linux-x86_64.egg to /data/run01/scz1454/hongjiacheng/Point-BERT-master/.local/lib/python3.7/site-packages
Adding chamfer 2.0.0 to easy-install.pth file
Installed /data/run01/scz1454/hongjiacheng/Point-BERT-master/.local/lib/python3.7/site-packages/chamfer-2.0.0-py3.7-linux-x86_64.egg
Processing dependencies for chamfer==2.0.0
Finished processing dependencies for chamfer==2.0.0
2.emd
linux-x86_64-cpython-37/cuda/emd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=emd_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu: In function ‘at::Tensor ApproxMatchForward(at::Tensor, at::Tensor)’:
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:181:16: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
CHECK_INPUT(xyz1);
^
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:303:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:182:16: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
CHECK_INPUT(xyz2);
^
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:303:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:184:45: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
auto match = at::zeros({b, m, n}, xyz1.type());
^
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:303:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:185:53: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:303:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu: In lambda function:
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:885: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:910: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:936: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:961: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu: In lambda function:
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:1730: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
/data/run01/scz1454/hongjiacheng/Point-BERT-master/extensions/emd/cuda/emd_kernel.cu:187:1754: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/HOME/scz1454/.conda/envs/hjc_pytorch/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here
T * data() const {
^
Metadata
Assignees
Labels
No labels