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

Open
Bot-wxt1221 opened this issue Aug 30, 2024 · 7 comments · May be fixed by #339619
Open

Build failure: opencv with cuda support #338315

Bot-wxt1221 opened this issue Aug 30, 2024 · 7 comments · May be fixed by #339619

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.

@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 linked a pull request Sep 4, 2024 that will close this issue
13 tasks
@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.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

5 participants