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

[opencv[cuda]] build failure #7913

Closed
RRathmann opened this issue Aug 26, 2019 · 3 comments · Fixed by #11130
Closed

[opencv[cuda]] build failure #7913

RRathmann opened this issue Aug 26, 2019 · 3 comments · Fixed by #11130
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@RRathmann
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: The CXX compiler identification is MSVC 19.22.27905.0
  • CUDA 10.1

To Reproduce
Steps to reproduce the behavior:
./vcpkg install opencv[cuda]

Failure logs
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:58 (message):
Command failed: ninja -v
Working Directory: C:/DevTools/Development/Tools/Microsoft/vcpkg-2019-08-26/buildtrees/opencv4/x86-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\DevTools\Development\Tools\Microsoft\vcpkg-2019-08-26\buildtrees\opencv4\config-x86-windows-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:296 (vcpkg_execute_required_process)
ports/opencv4/portfile.cmake:244 (vcpkg_configure_cmake)
scripts/ports.cmake:85 (include)

Error: Building package opencv4:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: opencv4:x86-windows
Vcpkg version: 2019.08.16-nohash

Additional context
config-x86-windows-out.log

@RRathmann RRathmann added the category:port-bug The issue is with a library, which is something the port should already support label Aug 26, 2019
@MVoz
Copy link
Contributor

MVoz commented Aug 26, 2019

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

-- Extra dependencies: opengl32 glu32 cudart_static.lib C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/Win32/cuda.lib CUDA_nppc_LIBRARY-NOTFOUND CUDA_nppial_LIBRARY-NOTFOUND CUDA_nppicc_LIBRARY-NOTFOUND CUDA_nppicom_LIBRARY-NOTFOUND CUDA_nppidei_LIBRARY-NOTFOUND CUDA_nppif_LIBRARY-NOTFOUND CUDA_nppig_LIBRARY-NOTFOUND CUDA_nppim_LIBRARY-NOTFOUND CUDA_nppist_LIBRARY-NOTFOUND CUDA_nppisu_LIBRARY-NOTFOUND CUDA_nppitc_LIBRARY-NOTFOUND CUDA_npps_LIBRARY-NOTFOUND CUDA_cublas_LIBRARY-NOTFOUND CUDA_cufft_LIBRARY-NOTFOUND -LIBPATH:"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/lib/Win32"

@RRathmann
Copy link
Author

Release notes for CUDA Tookit (C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\CUDA_Toolkit_Release_Notes.txt) are copyrighted, so reluctant to attach.
Excerpt says:
"3.4. Deprecated Features
....
* 32-bit tools are no longer supported starting with
CUDA 10.0.
..."

Performed ./vcpkg install opencv[cuda]:x64-windows and it completed with no errors. [Took about 2 hours on 6-core Xeon system - yikes]

So, package build needs to be updated to accomodate 10.0+ version of CUDA toolkit. Perhaps continue support for x86-windows pre 10.0, deprecate support after?

@cenit
Copy link
Contributor

cenit commented Aug 27, 2019

Unfortunately cuda feature is unavailable with x86 triplets, only x64 ones work.
I will try to investigate how much difficult it would be to support x86 using an older version of cuda

@cbezault cbezault added needs resources and removed category:port-bug The issue is with a library, which is something the port should already support labels Aug 28, 2019
@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants