-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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: misc CUDA-related updates and fixes; add enableLto #221370
opencv: misc CUDA-related updates and fixes; add enableLto #221370
Conversation
- use cudaPackages instead of cudatoolkit (reduces download/closure size) - set C/C++ compiler when building with CUDA to ensure NVCC has an appropriate backing compiler - add flag to build with CUDNN (disabled by default due to increase in closure size) - add flag to build with LTO (enabled by default)
Running And the failures (all of which seem unrelated): Failed derivations
|
Hi all, Are there any blockers preventing this from being merged? |
LGTM, @basvandijk @SomeoneSerge thoughts? |
# Only clang supports thin LTO, so we must either be using clang through the stdenv, | ||
stdenv.cc.isClang || | ||
# or through the backend stdenv. | ||
(enableCuda && backendStdenv.cc.isClang) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we currently can't test this as we hard-wire cuda to gcc. H'm
In the interest of keeping PRs moving along, I went ahead and merged! Thanks so much @ConnorBaker ! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-46/26872/1 |
Description of changes
This is a re-land of #218044, but against
staging
instead ofmaster
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)