Closed Wansh619 closed 5 months ago
Hello,
Please see this issue if it fits you. This is because latest VS2022 is 17.10 and not 17.9x.
17.10 is not supported. Also make sure you have installed setuptools 69.5.1. Gsplat does not compile with setuptools 70.0.0 which was released a few days ago.
@abrahamezzeddine Thanks for your help it really worked
@Wansh619 Hi, mate. How do you download VS 17.9? I cannot find any old version download link on VS official website :(
I downloaded the enterprise version 17.9.6
@Wansh619 Hi, mate. How do you download VS 17.9? I cannot find any old version download link on VS official website :(
Check #3157
@Wansh619 @abrahamezzeddine
Thanks guys! I have successfully installed the nerfstudio.
@s1eeveW Where did you download the 17,9version , i can not find the website either
@s1eeveW Where did you download the 17,9version , i can not find the website either
I found link as here and how to reinstall it. https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history https://learn.microsoft.com/en-us/answers/questions/770494/is-it-possible-to-install-a-prior-build-version-of
I agree it is not bulletproof to do.
at my own risk , I have allowed 17.10 version nerfstudio\include\crt/host_config.h
#if defined(sucks)
#if defined(_WIN32)
#if _MSC_VER < 1910 || _MSC_VER >= 1940
#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.
#elif _MSC_VER >= 1910 && _MSC_VER < 1910
#pragma message("support for this version of Microsoft Visual Studio has been deprecated! Only the versions between 2017 and 2022 (inclusive) are supported!")
#endif /* (_MSC_VER < 1910 || _MSC_VER >= 1940) || (_MSC_VER >= 1910 && _MSC_VER < 1910) */
#endif /* _WIN32 */
#endif
One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.
One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.
May I ask how to add flags for nvcc? I am new to this and I've been searching through the internet and still got no results. Thank you so much for the help in advance!
One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.
May I ask how to add flags for nvcc? I am new to this and I've been searching through the internet and still got no results. Thank you so much for the help in advance!
You can add an additional flag to your CMAKE_ARGS for CUDA and just string all of the flags you need to pass to nvcc like so:
CMAKE_ARGS="-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler ... {other_args}"
For example, adding this flag to my args worked perfectly for building llama_cpp_python against my specific GPU architecture in native windows PowerShell:
$env:CMAKE_ARGS="-DLLAMA_OPENBLAS=on -DGGML_BLAS_VENDOR=OpenBLAS -DLLAMA_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=89 -DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler"
...
Strangely though, a bunch of the nvcc comilation tasks ended up finding my 2022 version of Visual Studio anyway, and I saw this in the logs:
... bin\nvcc.exe" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools ... "
idk why it didn't find it in the first place.
¯_(ツ)_/¯
glhf
Hello,
Please see this issue if it fits you. This is because latest VS2022 is 17.10 and not 17.9x.
17.10 is not supported. Also make sure you have installed setuptools 69.5.1. Gsplat does not compile with setuptools 70.0.0 which was released a few days ago.
3157
For People downloading it post September, Here is the link for the Visual Studio 17.9.0 Professional
I am running on RTX3060 12 GB VRAM with Cuda 11.8 and VS Professional 17.9.0
I am encountering an error when trying to install the Tiny CUDA Neural Networks (tiny-cuda-nn) bindings for Torch. I have installed Visual Studio 2022 and Torch 2.1.2 with CUDA 11.8. Despite these installations, I still face issues during the installation process in my window 10 instance.
pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
ERROR:
encountering this issue even after installin VS2022 :
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\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.