opencv{3,4}: move cudatoolkit to propagatedBuildInputs#144157
Merged
r-burns merged 1 commit intoNixOS:masterfrom Nov 4, 2021
Merged
opencv{3,4}: move cudatoolkit to propagatedBuildInputs#144157r-burns merged 1 commit intoNixOS:masterfrom
r-burns merged 1 commit intoNixOS:masterfrom
Conversation
Contributor
|
Technically, cudatoolkit should be a propagatedNativeBuildInput since it runs on the build platform. In any case, this is a clear improvement. |
r-burns
approved these changes
Nov 2, 2021
Member
|
It seems that #221370 has re-introduced the issue that this solved. @ConnorBaker? |
Contributor
|
@hacker1024 I tried to reproduce the failure the original issue had but was unable to with $ cat ~/.config/nixpkgs/config.nix
{
allowUnfree = true;
cudaSupport = true;
cudaCapabilities = [ "8.9" ];
cudaForwardCompat = false;
}
$ nix build --impure -L github:nixos/nixpkgs/7fd504ce341d59b0ae2e8dc4469cc3ce3891eeb8#qimgv(the commit 7fd504c is from earlier today). We had some changes in how CMake-based projects handle/use CUDA redistributables which could be preventing this issue from occurring again: #233581. Do you have a reproducer for the failure? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
OpenCV's cmake files expect to be able to find the same CUDA toolkit they were built with when building packages that depend on OpenCV, even if they do not use CUDA. Fixes #144054 .
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)