TingtingLiao / Dream2DGS

Dream2DGS
MIT License
108 stars 4 forks source link

Error when install diff-surfel-rasterization on Windows 11 #4

Closed MrForExample closed 5 months ago

MrForExample commented 5 months ago

Everything else can be installed without any error, only when install diff-surfel-rasterization gives me this error: (PS, I also tried downgrade the setuptools version to 60 & 59, but it only removes DeprecationWarning, error still persist)

Obtaining file:///C:/Users/reall/Softwares/Miniconda/envs/AI3D_Exp/_Projects/Dream2DGS/submodules/diff-surfel-rasterization
  Preparing metadata (setup.py) ... done
Installing collected packages: diff_surfel_rasterization
  Running setup.py develop for diff_surfel_rasterization
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [320 lines of output]
        running develop
        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py:40: 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.
                ********************************************************************************

        !!
          easy_install.initialize_options(self)
        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\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()
        running egg_info
        writing diff_surfel_rasterization.egg-info\PKG-INFO
        writing dependency_links to diff_surfel_rasterization.egg-info\dependency_links.txt
        writing top-level names to diff_surfel_rasterization.egg-info\top_level.txt
        reading manifest file 'diff_surfel_rasterization.egg-info\SOURCES.txt'
        adding license file 'LICENSE.md'
        writing manifest file 'diff_surfel_rasterization.egg-info\SOURCES.txt'
        running build_ext
        building 'diff_surfel_rasterization._C' extension
        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
        If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
          warnings.warn(
        Emitting ninja build file C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\build.ninja...
        Compiling objects...
        Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
        [1/1] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\TH -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu -o C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
        FAILED: C:/Users/reall/Softwares/Miniconda/envs/AI3D_Exp/_Projects/Dream2DGS/submodules/diff-surfel-rasterization/build/temp.win-amd64-cpython-311/Release/rasterize_points.obj
        C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\TH -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu -o C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(28): error: expected a declaration
            do { ::c10::detail::deprecated_AT_ASSERTM(); if (!(x.type().is_cuda())) { ::c10::detail::torchInternalAssertFail( __func__, "C:\\Users\\reall\\Softwares\\Miniconda\\envs\\AI3D_Exp\\_Projects\\Dream2DGS\\submodules\\diff-surfel-rasterization\\rasterize_points.cu", static_cast<uint32_t>(28), "x.type().is_cuda()" " INTERNAL ASSERT FAILED at " "\"C:\\\\Users\\\\reall\\\\Softwares\\\\Miniconda\\\\envs\\\\AI3D_Exp\\\\_Projects\\\\Dream2DGS\\\\submodules\\\\diff-surfel-rasterization\\\\rasterize_points.cu\"" ":" "28" ", please report a bug to PyTorch. ", c10::str(#x " must be a CUDA tensor")); }; } while (false)
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(28): error: "#" not expected here
            do { ::c10::detail::deprecated_AT_ASSERTM(); if (!(x.type().is_cuda())) { ::c10::detail::torchInternalAssertFail( __func__, "C:\\Users\\reall\\Softwares\\Miniconda\\envs\\AI3D_Exp\\_Projects\\Dream2DGS\\submodules\\diff-surfel-rasterization\\rasterize_points.cu", static_cast<uint32_t>(28), "x.type().is_cuda()" " INTERNAL ASSERT FAILED at " "\"C:\\\\Users\\\\reall\\\\Softwares\\\\Miniconda\\\\envs\\\\AI3D_Exp\\\\_Projects\\\\Dream2DGS\\\\submodules\\\\diff-surfel-rasterization\\\\rasterize_points.cu\"" ":" "28" ", please report a bug to PyTorch. ", c10::str(#x " must be a CUDA tensor")); }; } while (false)

                                         ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(77): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(78): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(79): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(80): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(81): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(81): warning #12-D: parsing restarts here after previous syntax error
            \ ;
              ^

        Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(82): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(82): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(83): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(83): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(84): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(84): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(85): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(85): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(86): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(86): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(87): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(87): error: expected a declaration
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(89): error: identifier "means3D" is undefined
            auto int_opts = means3D.options().dtype(torch::kInt32);
                            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(92): error: identifier "H" is undefined     
            torch::Tensor out_color = torch::full({3, H, W}, 0.0, float_opts);
                                                      ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(92): error: identifier "W" is undefined     
            torch::Tensor out_color = torch::full({3, H, W}, 0.0, float_opts);
                                                         ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(94): error: identifier "P" is undefined     
            torch::Tensor radii = torch::full({P}, 0, means3D.options().dtype(torch::kInt32));
                                               ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(101): error: identifier "resizeFunctional" is undefined
            std::function<char*(size_t)> geomFunc = resizeFunctional(geomBuffer);
                                                    ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(106): error: expected a declaration
            if(P != 0)
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(138): warning #12-D: parsing restarts here after previous syntax error
                    debug);
                          ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(139): error: expected a declaration
            }
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(141): error: expected a declaration
          }
          ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(169): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(170): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(171): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(172): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(173): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(174): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(175): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(176): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(177): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(178): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(179): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(180): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(181): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(182): error: unrecognized token
            \ ;
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(188): warning #12-D: parsing restarts here after previous syntax error
            int M = 0;
                     ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(189): error: expected a declaration
            if(sh.size(0) != 0)
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(194): warning #12-D: parsing restarts here after previous syntax error
            torch::Tensor dL_dmeans3D = torch::zeros({P, 3}, means3D.options());
                                                                               ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(200): error: identifier "M" is undefined    
            torch::Tensor dL_dsh = torch::zeros({P, M, 3}, means3D.options());
                                                    ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(204): error: expected a declaration
            if(P != 0)
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(236): warning #12-D: parsing restarts here after previous syntax error
              debug);
                    ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(237): error: expected a declaration
            }
            ^

        C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(240): error: expected a declaration

          }

          ^

        46 errors detected in the compilation of "C:/Users/reall/Softwares/Miniconda/envs/AI3D_Exp/_Projects/Dream2DGS/submodules/diff-surfel-rasterization/rasterize_points.cu". 

        rasterize_points.cu

        ninja: build stopped: subcommand failed.
        Traceback (most recent call last):
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 2107, in _run_ninja_build
            subprocess.run(
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\subprocess.py", line 571, 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 "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\setup.py", line 17, in <module>
            setup(
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\__init__.py", line 104, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
            return run_commands(dist)
                   ^^^^^^^^^^^^^^^^^^
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
            dist.run_commands()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
            self.run_command(cmd)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\dist.py", line 967, in run_command
            super().run_command(command)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
            cmd_obj.run()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py", line 34, in run
            self.install_for_development()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py", line 111, in install_for_development
            self.run_command('build_ext')
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
            self.distribution.run_command(command)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\dist.py", line 967, in run_command
            super().run_command(command)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
            cmd_obj.run()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\build_ext.py", line 91, in run
            _build_ext.run(self)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
            self.build_extensions()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 870, in build_extensions
            build_ext.build_extensions(self)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions
            self._build_extensions_serial()
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial
            self.build_extension(ext)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\build_ext.py", line 252, in build_extension
            _build_ext.build_extension(self, ext)
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 560, in build_extension
            objects = self.compiler.compile(
                      ^^^^^^^^^^^^^^^^^^^^^^
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 842, in win_wrap_ninja_compile
            _write_ninja_file_and_compile_objects(
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 1783, in _write_ninja_file_and_compile_objects
            _run_ninja_build(
          File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 2123, in _run_ninja_build
            raise RuntimeError(message) from e
        RuntimeError: Error compiling objects for extension
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [320 lines of output]
    running develop
    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py:40: 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.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\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()
    running egg_info
    writing diff_surfel_rasterization.egg-info\PKG-INFO
    writing dependency_links to diff_surfel_rasterization.egg-info\dependency_links.txt
    writing top-level names to diff_surfel_rasterization.egg-info\top_level.txt
    reading manifest file 'diff_surfel_rasterization.egg-info\SOURCES.txt'
    adding license file 'LICENSE.md'
    writing manifest file 'diff_surfel_rasterization.egg-info\SOURCES.txt'
    running build_ext
    building 'diff_surfel_rasterization._C' extension
    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
    If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
      warnings.warn(
    Emitting ninja build file C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\build.ninja...
    Compiling objects...
    Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
    [1/1] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\TH -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu -o C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
    FAILED: C:/Users/reall/Softwares/Miniconda/envs/AI3D_Exp/_Projects/Dream2DGS/submodules/diff-surfel-rasterization/build/temp.win-amd64-cpython-311/Release/rasterize_points.obj
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\TH -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\include -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu -o C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\build\temp.win-amd64-cpython-311\Release\rasterize_points.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(28): error: expected a declaration
        do { ::c10::detail::deprecated_AT_ASSERTM(); if (!(x.type().is_cuda())) { ::c10::detail::torchInternalAssertFail( __func__, "C:\\Users\\reall\\Softwares\\Miniconda\\envs\\AI3D_Exp\\_Projects\\Dream2DGS\\submodules\\diff-surfel-rasterization\\rasterize_points.cu", static_cast<uint32_t>(28), "x.type().is_cuda()" " INTERNAL ASSERT FAILED at " "\"C:\\\\Users\\\\reall\\\\Softwares\\\\Miniconda\\\\envs\\\\AI3D_Exp\\\\_Projects\\\\Dream2DGS\\\\submodules\\\\diff-surfel-rasterization\\\\rasterize_points.cu\"" ":" "28" ", please report a bug to PyTorch. ", c10::str(#x " must be a CUDA tensor")); }; } while (false)
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(28): error: "#" not expected here
        do { ::c10::detail::deprecated_AT_ASSERTM(); if (!(x.type().is_cuda())) { ::c10::detail::torchInternalAssertFail( __func__, "C:\\Users\\reall\\Softwares\\Miniconda\\envs\\AI3D_Exp\\_Projects\\Dream2DGS\\submodules\\diff-surfel-rasterization\\rasterize_points.cu", static_cast<uint32_t>(28), "x.type().is_cuda()" " INTERNAL ASSERT FAILED at " "\"C:\\\\Users\\\\reall\\\\Softwares\\\\Miniconda\\\\envs\\\\AI3D_Exp\\\\_Projects\\\\Dream2DGS\\\\submodules\\\\diff-surfel-rasterization\\\\rasterize_points.cu\"" ":" "28" ", please report a bug to PyTorch. ", c10::str(#x " must be a CUDA tensor")); }; } while (false)

                                     ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(77): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(78): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(79): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(80): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(81): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(81): warning #12-D: parsing restarts here after previous syntax error
        \ ;
          ^

    Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(82): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(82): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(83): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(83): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(84): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(84): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(85): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(85): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(86): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(86): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(87): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(87): error: expected a declaration
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(89): error: identifier "means3D" is undefined   
        auto int_opts = means3D.options().dtype(torch::kInt32);
                        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(92): error: identifier "H" is undefined
        torch::Tensor out_color = torch::full({3, H, W}, 0.0, float_opts);
                                                  ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(92): error: identifier "W" is undefined
        torch::Tensor out_color = torch::full({3, H, W}, 0.0, float_opts);
                                                     ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(94): error: identifier "P" is undefined
        torch::Tensor radii = torch::full({P}, 0, means3D.options().dtype(torch::kInt32));
                                           ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(101): error: identifier "resizeFunctional" is undefined
        std::function<char*(size_t)> geomFunc = resizeFunctional(geomBuffer);
                                                ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(106): error: expected a declaration
        if(P != 0)
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(138): warning #12-D: parsing restarts here after previous syntax error
                debug);
                      ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(139): error: expected a declaration
        }
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(141): error: expected a declaration
      }
      ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(169): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(170): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(171): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(172): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(173): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(174): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(175): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(176): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(177): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(178): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(179): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(180): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(181): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(182): error: unrecognized token
        \ ;
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(188): warning #12-D: parsing restarts here after previous syntax error
        int M = 0;
                 ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(189): error: expected a declaration
        if(sh.size(0) != 0)
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(194): warning #12-D: parsing restarts here after previous syntax error
        torch::Tensor dL_dmeans3D = torch::zeros({P, 3}, means3D.options());
                                                                           ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(200): error: identifier "M" is undefined        
        torch::Tensor dL_dsh = torch::zeros({P, M, 3}, means3D.options());
                                                ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(204): error: expected a declaration
        if(P != 0)
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(236): warning #12-D: parsing restarts here after previous syntax error
          debug);
                ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(237): error: expected a declaration
        }
        ^

    C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\rasterize_points.cu(240): error: expected a declaration

      }

      ^

    46 errors detected in the compilation of "C:/Users/reall/Softwares/Miniconda/envs/AI3D_Exp/_Projects/Dream2DGS/submodules/diff-surfel-rasterization/rasterize_points.cu".     

    rasterize_points.cu

    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 2107, in _run_ninja_build
        subprocess.run(
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\subprocess.py", line 571, 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 "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\_Projects\Dream2DGS\submodules\diff-surfel-rasterization\setup.py", line 17, in <module>
        setup(
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\__init__.py", line 104, in setup
        return distutils.core.setup(**attrs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
        return run_commands(dist)
               ^^^^^^^^^^^^^^^^^^
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
        dist.run_commands()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\dist.py", line 967, in run_command
        super().run_command(command)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
        cmd_obj.run()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py", line 34, in run
        self.install_for_development()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\develop.py", line 111, in install_for_development
        self.run_command('build_ext')
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
        self.distribution.run_command(command)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\dist.py", line 967, in run_command
        super().run_command(command)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
        cmd_obj.run()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\build_ext.py", line 91, in run
        _build_ext.run(self)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
        self.build_extensions()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 870, in build_extensions
        build_ext.build_extensions(self)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions
        self._build_extensions_serial()
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial
        self.build_extension(ext)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\command\build_ext.py", line 252, in build_extension
        _build_ext.build_extension(self, ext)
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 560, in build_extension
        objects = self.compiler.compile(
                  ^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 842, in win_wrap_ninja_compile
        _write_ninja_file_and_compile_objects(
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 1783, in _write_ninja_file_and_compile_objects
        _run_ninja_build(
      File "C:\Users\reall\Softwares\Miniconda\envs\AI3D_Exp\Lib\site-packages\torch\utils\cpp_extension.py", line 2123, in _run_ninja_build
        raise RuntimeError(message) from e
    RuntimeError: Error compiling objects for extension
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
hbb1 commented 5 months ago

Hi, have you tried this? https://github.com/hbb1/2d-gaussian-splatting/issues/10#issuecomment-2100600084

MrForExample commented 5 months ago

Yes, it worked, thank you, cheers 👍