Skip to content
TheChatArchiveThe Chat Archive
o1-preview-2024-09-12· OpenAIAi2 WildChat-4.8M (AI2)

give me steps to resolve following error: [Comfy3D] Load CharacterGen Reconstruction…

  1. User

    give me steps to resolve following error: [Comfy3D] Load CharacterGen Reconstruction Model

    Error building extension 'nvdiffrast_plugin': [1/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output antialias.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\antialias.cu -o antialias.cuda.o FAILED: antialias.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output antialias.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\antialias.cu -o antialias.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. antialias.cu [2/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output interpolate.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\interpolate.cu -o interpolate.cuda.o FAILED: interpolate.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output interpolate.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\interpolate.cu -o interpolate.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. interpolate.cu [3/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output texture.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\texture.cu -o texture.cuda.o FAILED: texture.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output texture.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\texture.cu -o texture.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. texture.cu [4/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output RasterImpl.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\cudaraster\impl\RasterImpl.cu -o RasterImpl.cuda.o FAILED: RasterImpl.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output RasterImpl.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\cudaraster\impl\RasterImpl.cu -o RasterImpl.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. RasterImpl.cu [5/6] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output rasterize.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize.cu -o rasterize.cuda.o FAILED: rasterize.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output rasterize.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -IC:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -DNVDR_TORCH -lineinfo -c C:\Users\SEPHiA\Desktop\github\ComfyUI_3D\python_embeded\Lib\site-packages\nvdiffrast\common\rasterize.cu -o rasterize.cuda.o C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. rasterize.cu ninja: build stopped: subcommand failed.

  2. Assistant

    The error you're encountering occurs because the NVIDIA CUDA Compiler (nvcc) is detecting an unsupported version of Microsoft Visual Studio (MSVS). According to the error message:

    #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported!
    

    This means that either:

    1. You have a version of Visual Studio that is not within the supported range.
    2. nvcc is not correctly detecting your installed Visual Studio version.
    3. The environment is misconfigured, leading nvcc to use the wrong compiler.

    Here's how you can resolve this issue:

    Step 1: Verify Your Visual Studio Installation

    1. Check Installed Versions:

      • Go to Control Panel > Programs > Programs and Features.
      • Look for Microsoft Visual Studio entries and note their versions.
    2. Ensure Supported Version is Installed:

    3. Install Desktop Development with C++:

      • During Visual Studio installation, ensure you select the "Desktop development with C++" workload.
      • This installs the necessary C++ compilers and tools.

    Step 2: Configure Environment Variables

    1. Set Visual Studio Environment Variables:

      • Open Developer Command Prompt for VS 2022 as an administrator.
      • This command prompt sets up the environment variables for the compiler.
    2. Add Visual Studio Paths to System PATH:

      • Ensure the paths to cl.exe (the MSVC compiler) and other tools are included in your system PATH environment variable.
      • Typically, the path is something like:
        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\<Version>\bin\Hostx64\x64
        
      • Replace <Version> with the actual version number installed on your system.

    Step 3: Verify CUDA Toolkit and Visual Studio Integration

    1. Check CUDA Toolkit Installation:

      • Ensure that the CUDA Toolkit version matches the supported Visual Studio version.
      • CUDA Toolkit 12.1 should work with Visual Studio 2022.
    2. Reinstall CUDA Toolkit (If Necessary):

      • If Visual Studio was installed after the CUDA Toolkit, it's possible the integration wasn't set up correctly.
      • Reinstall the CUDA Toolkit to ensure it detects the Visual Studio installation.
      • Download the installer from the CUDA Toolkit Download Page.

    Step 4: Adjust the Build Configuration

    1. Update nvcc Compiler Flags:

      • If you're still encountering the error, you can try adding the -allow-unsupported-compiler flag to the nvcc compiler flags.
      • Warning: Using this flag may cause compilation failures or runtime errors. Proceed with caution.
    2. Edit the Build Script or Configuration:

      • Locate the build script or configuration file used to compile nvdiffrast_plugin.
      • Add the flag to the nvcc compiler options.

      For example:

      nvcc ... -allow-unsupported-compiler ...
      

    Step 5: Verify the MSVC Toolset Version

    1. Check MSVC Toolset Compatibility:

      • CUDA Toolkit may not support the latest MSVC toolset versions immediately after they are released.
      • Visual Studio 2022 can use different toolset versions. Ensure you're using a toolset version compatible with CUDA 12.1.
    2. Install Compatible MSVC Toolset:

      • In Visual Studio Installer:
        • Modify your Visual Studio installation.
        • Under Individual Components, select an older MSVC toolset version compatible with CUDA 12.1, such as MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest).
    3. Set the MSVC Version for Compilation:

      • When building, specify the MSVC version to use.
      • You can adjust your project's configuration to target the compatible toolset.

    Step 6: Test the Compilation

    1. Clean and Rebuild:

      • Delete any previously generated build artifacts to ensure a clean build environment.
      • Try rebuilding the nvdiffrast_plugin.
    2. Monitor for Errors:

      • If the error persists, double-check the steps above.
      • Ensure there are no typos or misconfigurations.

    Additional Considerations

    • Python and PyTorch Versions:

      • Ensure that your Python and PyTorch installations are compatible with the CUDA toolkit version.
      • Use versions of PyTorch that are built for CUDA 12.1.
    • Environment Isolation:

      • Consider using a virtual environment to isolate dependencies.
      • This can prevent conflicts between packages and versions.
    • Update Packages:

      • Update nvdiffrast and any related packages to the latest versions.

    References

    Summary

    The error you're facing is due to an incompatibility between the CUDA compiler and the version of Microsoft Visual Studio installed on your system. By ensuring you have a supported version of Visual Studio installed and correctly configured, you should be able to resolve this error and successfully build the nvdiffrast_plugin.

    If you have any questions or need further assistance, feel free to ask!