Skip to content

Commit

Permalink
opencv: dont try cuda on 32 bit
Browse files Browse the repository at this point in the history
config.cudaSupport can be true and cudatoolkit doesn't work with i686,
which can happen inside pkgsi686Linux wrapping.
  • Loading branch information
Averell Dalton authored and FRidh committed Aug 31, 2019
1 parent 5858a36 commit c4adedd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/opencv/3.x.nix
Expand Up @@ -14,7 +14,8 @@
, enableOpenblas ? true, openblas
, enableContrib ? true

, enableCuda ? config.cudaSupport or false, cudatoolkit
, enableCuda ? (config.cudaSupport or false) &&
stdenv.hostPlatform.isx86_64, cudatoolkit

, enableUnfree ? false
, enableIpp ? false
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/libraries/opencv/4.x.nix
Expand Up @@ -14,7 +14,8 @@
, enableOpenblas ? true, openblas
, enableContrib ? true

, enableCuda ? config.cudaSupport or false, cudatoolkit
, enableCuda ? (config.cudaSupport or false) &&
stdenv.hostPlatform.isx86_64, cudatoolkit

, enableUnfree ? false
, enableIpp ? false
Expand Down

0 comments on commit c4adedd

Please sign in to comment.