Cuogeihong / CEASC

The official implementation of CEASC
Apache License 2.0
106 stars 13 forks source link

An error is reported when sparse conv compiles #27

Open hanks124 opened 11 months ago

hanks124 commented 11 months ago

creating build/temp.linux-x86_64-cpython-38 gcc -pthread -B /home/han/anaconda3/envs/py38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/han/anaconda3/envs/py38/include -fPIC -O2 -isystem /home/han/anaconda3/envs/py38/include -fPIC -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/han/anaconda3/envs/py38/include/python3.8 -c sparse_conv_cuda.cpp -o build/temp.linux-x86_64-cpython-38/sparse_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=sparse_conv -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 /usr/local/cuda-11.8/bin/nvcc -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/TH -I/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/han/anaconda3/envs/py38/include/python3.8 -c sparse_conv_cuda_kernel.cu -o build/temp.linux-x86_64-cpython-38/sparse_conv_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' --extended-lambda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=sparse_conv -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 /home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, >::operator==(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=size_t, one_sided=false, =0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, >::operator!=(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=size_t, one_sided=false, =0]" /home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(77): here

/home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, >::operator==(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=std::size_t, one_sided=true, =0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, >::operator!=(const c10::detail::integer_iterator<I, one_sided, > &) const [with I=std::size_t, one_sided=true, =0]" /home/han/anaconda3/envs/py38/lib/python3.8/site-packages/torch/include/ATen/core/qualified_name.h(73): here

sparse_conv_cuda_kernel.cu(244): warning #177-D: variable "D" was declared but never referenced

sparse_conv_cuda_kernel.cu(170): error: too many arguments for class template "at::native::WelfordData"

sparse_conv_cuda_kernel.cu(172): error: too many arguments for class template "at::native::WelfordOps"

sparse_conv_cuda_kernel.cu(172): error: expected a ";"

3 errors detected in the compilation of "sparse_conv_cuda_kernel.cu". error: command '/usr/local/cuda-11.8/bin/nvcc' failed with exit code 2

When I compile sparse conv, I report the above error, why is that? Whether I use colab or wsl2, this error is reported, I don't think it's my computer's problem

haoyuxingchen commented 7 months ago

same error