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

python3 setup.py install Error while compiling #1

Closed
mooncakehub opened this issue Mar 1, 2024 · 13 comments
Closed

python3 setup.py install Error while compiling #1

mooncakehub opened this issue Mar 1, 2024 · 13 comments

Comments

@mooncakehub
Copy link

gcc version: 11.4
nvcc-V:11.5
cuda:11.5

TO%8S QT(G1JH3%X1UD$503

@anhthuan1999
Copy link
Owner

Hi, can you show full log for this error?

@mooncakehub
Copy link
Author

running install
/home/cm/miniconda3/envs/pointct/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/cm/miniconda3/envs/pointct/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,
running bdist_egg
running egg_info
writing pointops.egg-info/PKG-INFO
writing dependency_links to pointops.egg-info/dependency_links.txt
writing top-level names to pointops.egg-info/top_level.txt
reading manifest file 'pointops.egg-info/SOURCES.txt'
writing manifest file 'pointops.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py:782: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'pointops_cuda' extension
Emitting ninja build file /home/cm/share/Fxy/PointCT-main/lib/pointops/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)
[1/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/knnquery/knnquery_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/knnquery/knnquery_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/knnquery/knnquery_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/knnquery/knnquery_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/knnquery/knnquery_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘ArgTypes’
[2/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/aggregation/aggregation_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/aggregation/aggregation_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/aggregation/aggregation_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/aggregation/aggregation_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/aggregation/aggregation_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘ArgTypes’
[3/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/interpolation/interpolation_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/interpolation/interpolation_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/interpolation/interpolation_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/interpolation/interpolation_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/interpolation/interpolation_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘ArgTypes’
[4/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/grouping/grouping_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/grouping/grouping_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/grouping/grouping_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/grouping/grouping_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/grouping/grouping_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘ArgTypes’
[5/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/subtraction/subtraction_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/subtraction/subtraction_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/subtraction/subtraction_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/subtraction/subtraction_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/subtraction/subtraction_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(Functor&& f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘ArgTypes’
[6/6] /usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/sampling/sampling_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/sampling/sampling_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/sampling/sampling_cuda_kernel.o
/usr/bin/nvcc -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include/python3.7m -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/sampling/sampling_cuda_kernel.cu -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-37/src/sampling/sampling_cuda_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=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 | function(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build
env=env)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "setup.py", line 34, in
cmdclass={'build_ext': BuildExtension}
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/install.py", line 74, in run
self.do_egg_install()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
self.run_command('build_ext')
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
build_ext.build_extensions(self)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension
depends=ext.depends,
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/cm/miniconda3/envs/pointct/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

@anhthuan1999
Copy link
Owner

anhthuan1999 commented Mar 4, 2024

Hi, it seems like your torch version (cuda 11.3) is different from your nvcc cuda (11.5).
Consequently, you can try install cuda 11.3 like our test environment or install appropriate torch with cuda 11.5 or 11.6 based on this: https://pytorch.org/get-started/previous-versions/

@mooncakehub
Copy link
Author

nvcc -V is 11.6 and torch.version.cuda is 11.6 too,but it's still has some problem.

running install
/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
running bdist_egg
running egg_info
writing pointops.egg-info/PKG-INFO
writing dependency_links to pointops.egg-info/dependency_links.txt
writing top-level names to pointops.egg-info/top_level.txt
reading manifest file 'pointops.egg-info/SOURCES.txt'
writing manifest file 'pointops.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pointops_cuda' extension
Emitting ninja build file /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/aggregation/aggregation_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/aggregation/aggregation_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/aggregation/aggregation_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/aggregation/aggregation_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/aggregation/aggregation_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/aggregation/aggregation_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/aggregation/aggregation_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/aggregation/aggregation_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[2/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/subtraction/subtraction_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/subtraction/subtraction_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/subtraction/subtraction_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/subtraction/subtraction_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/subtraction/subtraction_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/subtraction/subtraction_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/subtraction/subtraction_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/subtraction/subtraction_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[3/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/knnquery/knnquery_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/knnquery/knnquery_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/knnquery/knnquery_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/knnquery/knnquery_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/knnquery/knnquery_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/knnquery/knnquery_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/knnquery/knnquery_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/knnquery/knnquery_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[4/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/sampling/sampling_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/sampling/sampling_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/sampling/sampling_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/sampling/sampling_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/sampling/sampling_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/sampling/sampling_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/sampling/sampling_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/sampling/sampling_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[5/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/grouping/grouping_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/grouping/grouping_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/grouping/grouping_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/grouping/grouping_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/grouping/grouping_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/grouping/grouping_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/grouping/grouping_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/grouping/grouping_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
[6/6] c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/interpolation/interpolation_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/interpolation/interpolation_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/interpolation/interpolation_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/interpolation/interpolation_cuda.o
c++ -MMD -MF /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/interpolation/interpolation_cuda.o.d -pthread -B /home/cm/miniconda3/envs/pointct/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/TH -I/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/include/THC -I/home/cm/miniconda3/envs/pointct/include -I/home/cm/miniconda3/envs/pointct/include/python3.8 -c -c /home/cm/share/Fxy/PointCT-main/lib/pointops/src/interpolation/interpolation_cuda.cpp -o /home/cm/share/Fxy/PointCT-main/lib/pointops/build/temp.linux-x86_64-cpython-38/src/interpolation/interpolation_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=pointops_cuda -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++
/home/cm/share/Fxy/PointCT-main/lib/pointops/src/interpolation/interpolation_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
2 | #include <THC/THC.h>
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1900, in _run_ninja_build
subprocess.run(
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "setup.py", line 12, in
setup(
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/install.py", line 84, in run
self.do_egg_install()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/install.py", line 132, in do_egg_install
self.run_command('bdist_egg')
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1573, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/cm/miniconda3/envs/pointct/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1916, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

@anhthuan1999
Copy link
Owner

Hi, the problem came from torch 1.11 or higher, refer to this: open-mmlab/mmdetection3d#1332

@mooncakehub
Copy link
Author

Thank you for your help ,I have compiled successfully. However, I met another erro:
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
can you help me ,Thank you !

@anhthuan1999
Copy link
Owner

Yes, if you use only one gpu, you can check in config file and change 'train_gpu' into [0].

@mooncakehub
Copy link
Author

I use two gpus,but it still met erro:this is my setting:

DATA:
  data_name: s3dis
  data_root: /home/cm/share/Fxy/PointCT-main/data/stanford_indoor3d #data path
  test_area: 5
  classes: 13
  fea_dim: 6
  voxel_size: 0.04
  voxel_max: 80000
  loop: 30

TRAIN:
  arch: weak
  use_xyz: True
  sync_bn: False
  ignore_label: 255
  train_gpu: [4,5]
  workers: 16  # data loader workers
  batch_size: 4  # batch size for training
  batch_size_val: 2  # batch size for validation during training, memory and speed tradeoff
  base_lr: 0.0005 #0.0005
  epochs: 100
  start_epoch: 0
  step_epoch: 30
  multiplier: 0.1
  momentum: 0.9
  weight_decay: 0.1 #0.1 #0.0001
  drop_rate: 0.5
  manual_seed: 7777
  print_freq: 1
  save_freq: 1
  save_path:  /home/cm/share/Fxy/PointCT-main/train_model # save model path
  weight:  # path to initial weight (default: none)
  resume: # resume from previous steps (suggest: model_last.pth)
  evaluate: True  # evaluate on validation set, extra gpu memory needed and small batch_size_val is recommend
  eval_freq: 1
  labeled_point: 0.1%
  
Distributed:
  dist_url: tcp://localhost:8888
  dist_backend: 'nccl'
  multiprocessing_distributed: False
  world_size: 1
  rank: 0

TEST:
  test_list: #test list (applied only to s3dis with val5.txt)
  test_list_full: # applied only to s3dis: val5_full.txt
  split: val  # split in [train, val and test]
  test_gpu: [0]
  test_workers: 4
  batch_size_test: 4
  model_path: # model path for testing (suggest: model_best.pth)
  save_folder:  /home/cm/share/Fxy/PointCT-main/result # save result folder
  names_path: # s3dis_names.txt

@mooncakehub
Copy link
Author

there are a lot of erro like this,My GPU is not mobilized, is there a problem with the code

/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: operator(): block: [241,0,0], thread: [54,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: operator(): block: [241,0,0], thread: [55,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:93: operator(): block: [241,0,0], thread: [56,0,0] Assertion `index >= -sizes[i] && index < sizes[i] && "index out of bounds"` failed.

@anhthuan1999
Copy link
Owner

anhthuan1999 commented Mar 10, 2024

Could you please check it again with S3DIS dataset?
I will update this problem on our instruction soon

@mooncakehub
Copy link
Author

I prepared s3dis as this:
1710207041260

@anhthuan1999
Copy link
Owner

I updated about config file, which contains a mistake here. Could you please change config file "multiprocessing_distributed: True" under Distributed and test again

@halozyb
Copy link

halozyb commented Mar 19, 2024

Thank you for your help ,I have compiled successfully. However, I met another erro: RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 can you help me ,Thank you !

I encountered the same problem, how did you solve it? When I installed pytorch1.10 on my computer, I could not call cuda. ​​When I installed pytorch 1.11, I could call it, but the problem you encountered occurred.

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

3 participants