-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[cuda] correct env variables for newer cuda versions #12244
Conversation
Does this PR fixes #11976? |
@JackBoosY: At least for me:
|
CUDA worked very well in the past, so I think this is caused by CUDA or findCUDA.cmake update. Do we need to judge based on the version of CUDA? |
I think it is related to updating visual studio which somehow wipes
CUDA also worked for me two months or so ago and suddenly broke. So it is highly likely that a VS upgrade removed |
Anyway, this changes LGTM. |
new rules are now in effect)) CONTROL file
|
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
@JackBoosY: We might need to define CUDA_PATHS on a more global level so that dependent ports can actually leverage the additional search paths but that is something for a different PR |
@Neumann-A think we should add it to |
Let my colleague check this PR. |
CUDA_PATH should suffice tbh and it is working for cuda 11 for me without this PR :/ (and I also have vs fully up to date...) |
Another possibility is that a Windows Update killed the |
The version check here looks bogus and we are still looking for a better way to publish the detected CUDA information for other ports, so I think we should merge this as is but we don't want to close the door on fixing that the right way. Also this version check looks wrong https://github.com/microsoft/vcpkg/pull/12244/files#diff-efb436f7552399e0b189b636d44230f0R81 |
I remain on my idea that CUDA_PATH has to be defined in an environment for CUDA to be really working. It does not matter that this PR looks like fixing something, it’s just hiding problems which will reappear downwards. So, I would have left only CUDA_PATH for finding cuda. But again, it’s already merged, so be it. |
@Neumann-A I lost CUDA 11 (along with some other VS extension) in both my VS2017 and VS2019 with the latest upgrades of VS. I had to reinstall the CUDA package to get it back in both versions. |
* [cuda] correct env variables for newer cuda versions * Update ports/cuda/CONTROL Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
A bit of version updating for newer cuda versions