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

[cuda] build failure #11976

Closed
normandantzig1 opened this issue Jun 16, 2020 · 6 comments · Fixed by #12244
Closed

[cuda] build failure #11976

normandantzig1 opened this issue Jun 16, 2020 · 6 comments · Fixed by #12244
Assignees
Labels
category:port-update The issue is with a library, which is requesting update new revision category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@normandantzig1
Copy link

Host Environment

Windows 10
Cuda 11

To Reproduce
.\vcpkg install cuda

Failure logs
Error: Building package cuda:x86-windows failed with: BUILD_FAILED
Package: cuda:x86-windows
Vcpkg version: 2020.02.04-nohash

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

@NancyLi1013
Copy link
Contributor

Hi @normandantzig1
Thanks for posting this issue.
Could you please help confirm if the CUDA_PATH is correct?
Please addmessage("CUDA_PATH:$ENV{CUDA_PATH}") to portfile.cmake, and then rebuild this.

@NancyLi1013 NancyLi1013 changed the title [<port name>] build failure [cuda] build failure Jun 17, 2020
@NancyLi1013 NancyLi1013 added the category:question This issue is a question label Jun 17, 2020
@ghost
Copy link

ghost commented Jun 17, 2020

@NancyLi1013
@normandantzig1 mentions using cuda 11

@NancyLi1013
Copy link
Contributor

@timautry
Thanks for looking into this issue.
I have tried with cuda 11.0 and both cuda and cudnn can build successfully on my machine.
image

After downloading, the file name is cuda_11.0.1_451.22_win10.exe.

@normandantzig1
Copy link
Author

Thank You. Let me see about the path.

@Neumann-A
Copy link
Contributor

@JackBoosY: I have the same problem. nvcc is not getting found although I can open a cmd prompt and do nvcc without a problem. About the paths: For some reason i have CUDA_PATH_V10_2 but no CUDA_PATH variable and CUDA_PATH_V10_2 is not accesible from within VCPKG.

@Neumann-A
Copy link
Contributor

// Enables find_package(CUDA) and enable_language(CUDA) in CMake
L"CUDA_PATH",
L"CUDA_PATH_V9_0",
L"CUDA_PATH_V9_1",
L"CUDA_PATH_V10_0",
L"CUDA_PATH_V10_1",
L"CUDA_TOOLKIT_ROOT_DIR",
// Environmental variable generated automatically by CUDA after installation
L"NVCUDASAMPLES_ROOT",
// Enables find_package(Vulkan) in CMake. Environmental variable generated by Vulkan SDK installer
L"VULKAN_SDK",

needs updating and also

find_program(NVCC
NAMES nvcc.exe
PATHS
ENV CUDA_PATH
ENV CUDA_BIN_PATH
PATH_SUFFIXES bin bin64
DOC "Toolkit location."

@JackBoosY JackBoosY added category:port-update The issue is with a library, which is requesting update new revision category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed category:question This issue is a question labels Jul 3, 2020
@JackBoosY JackBoosY linked a pull request Jul 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-update The issue is with a library, which is requesting update new revision category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants