Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i found that the version of VS2019 may have to be lower than 16.11 #40

Open
cx-zzz opened this issue May 31, 2022 · 13 comments
Open

i found that the version of VS2019 may have to be lower than 16.11 #40

cx-zzz opened this issue May 31, 2022 · 13 comments

Comments

@cx-zzz
Copy link

cx-zzz commented May 31, 2022

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4
the fail was like "ninja -v "and" missing a '(' "

@Wasp3r
Copy link

Wasp3r commented Jun 1, 2022

Thank you very much for pointing it out. Thanks to you I could at least make it work

@jnm26
Copy link

jnm26 commented Jun 2, 2022

Just tried with 16.9.4 as suggested, same error "Underlying buffer has been detached". I made sure to use the developer command prompt for this revision and also removed vs 16.11.x.

EDIT: Actually, 16.9.4 seems to work, but I had to set env variable
set DISTUTILS_USE_SDK=1

You can see a message about it in the stack trace. I had set this using other VS versions and it never worked, but now using 16.9.4 and setting that env variable, it built

@cx-zzz
Copy link
Author

cx-zzz commented Jun 2, 2022

If you change the _run_ninja_build in cpp_extension.py (in your_env/Lib/site-packages/torch/utils), just change it back, it may work.
The code need to be:
command = ['ninja', '-v']
if this does not work , you may ask this question in tinycuda page .

@huvers
Copy link

huvers commented Jun 22, 2022

This unblocked me as well - thank you.

@zhangzhenfengjy
Copy link

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4 the fail was like "ninja -v "and" missing a '(' "

how to download 16.9.4?thank you very much.

@zhangzhenfengjy
Copy link

https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers

Thank you very much for your help, and I would like to ask what happened to the OPenSSL error when pulling from git? Can you give me some help?

@zhangzhenfengjy
Copy link

我尝试在我的计算机上安装 nvdiffrec 并且在 VS 版本为 16.11 时失败,当我重新安装 VS2019 16.9.4 时它工作 失败就像“ninja -v”和“缺少一个 '('”

How did you solve this problem? Thank you very much for your help, I can offer you some compensation.

@cx-zzz
Copy link
Author

cx-zzz commented Jun 28, 2022

看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了

@zhangzhenfengjy
Copy link

zhangzhenfengjy commented Jun 28, 2022 via email

@cx-zzz
Copy link
Author

cx-zzz commented Jun 28, 2022

感谢大哥的回复,我可以加您好友吗?如果您有时间的话向向您详细问一下?因为我现在很需要这个工程。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月28日(星期二) 晚上9:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [NVlabs/nvdiffrec] i found that the version of VS2019 may have to be lower than 16.11 (Issue #40) 看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

行,你把wx或者qq发我邮箱吧 cx19980514@outlook.com

@Firesampo
Copy link

Firesampo commented Jul 27, 2022

You need to install the latest CUDA version (11.7) + add the correct environment variables, that solved the problem for me.

Check this out, scroll down until you find the part with 11.7 instructions:

NVlabs/tiny-cuda-nn#110

@carlosedubarreto
Copy link

I had problems and did the tips posted here (install cuda 11.7, vstudio 167.9.4) but even doing that id didnt work.
I found that I was running the wrong developer command from visual studio. If you still have problems try pasting this command on your prompt and try again

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants