If you are having problems compiling a submodule (for example simple_knn) when using CUDA 11.8 and Visual Studio 2022, the issue is usually caused by an unsupported MSVC compiler version.
CUDA 11.8 officially supports MSVC 14.29 (VS2019) up to MSVC 14.34 (early VS2022). Newer compilers like MSVC 14.43 are not recognized and will trigger
SOLUTION :
Open the Visual Studio Installer.
Under Visual Studio 2022, click Modify.
Go to the Individual components tab.
Search for: MSVC v143 - VS 2022 C++ x64/x86 build tools (14.34 )
Install it
Re-run pip install submodules/diff-gaussian-rasterization