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

Build failure: opencv with cuda support #338315

Closed
Bot-wxt1221 opened this issue Aug 30, 2024 · 8 comments · Fixed by #339619
Closed

Build failure: opencv with cuda support #338315

Bot-wxt1221 opened this issue Aug 30, 2024 · 8 comments · Fixed by #339619
Assignees
Labels
0.kind: build failure A package fails to build 6.topic: cuda Parallel computing platform and API

Comments

@Bot-wxt1221
Copy link
Member

Bot-wxt1221 commented Aug 30, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build opencv with cuda support

Build log

https://gist.github.com/Bot-wxt1221/aa4ffdb2c6a569fcb45916cbd68ade79

Additional context

Currently at nixpkgs-unstable.

Notify maintainers

@basvandijk

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.5-zen1, NixOS, 24.11 (Vicuna), 24.11.20240828.4f9cb71`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Add a 👍 reaction to issues you find important.

@Bot-wxt1221 Bot-wxt1221 added the 0.kind: build failure A package fails to build label Aug 30, 2024
@yshui
Copy link
Contributor

yshui commented Sep 1, 2024

probably this one? opencv/opencv_contrib#3690

@DontEatOreo
Copy link
Member

I'm facing this issue as well, any workarounds?

@Bot-wxt1221
Copy link
Member Author

Not at all. I just disable cuda support.

@DontEatOreo
Copy link
Member

@basvandijk Could you take a look?

@ConnorBaker ConnorBaker added the 6.topic: cuda Parallel computing platform and API label Sep 4, 2024
@ConnorBaker ConnorBaker self-assigned this Sep 4, 2024
@ConnorBaker
Copy link
Contributor

#339619 would close this; I'm working on it at the moment.

OpenCV 4.10 supports CUDA 12.4+, but we only have 4.9 packaged right now. Not sure how invasive the changes are to support CUDA 12.4+, but if it's a must-have you can try finding the patches and applying them with overrideAttrs.

@ConnorBaker ConnorBaker moved this from New to 🏗 In progress in CUDA Team Sep 4, 2024
@yshui
Copy link
Contributor

yshui commented Sep 7, 2024

@DontEatOreo you can use an overlay, set cudaPackages = cudaPackage_12_3 to downgrade cuda to 12.3.

@Hobr
Copy link

Hobr commented Sep 8, 2024

cudaPackages = final.cudaPackages_12_3;

msfjarvis added a commit to msfjarvis/dotfiles that referenced this issue Sep 15, 2024
@wentasah
Copy link
Contributor

cudaPackages = final.cudaPackages_12_3;

If people are targeting aarch64-linux, 12.2 should be used, because 12.3 somehow lacks cuda_compat, which is needed for aarch64 builds:

cudaPackages = self.cudaPackages_12_2;

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in CUDA Team Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: cuda Parallel computing platform and API
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants