opencv3: added in extra flag for enabling cuda with dependencies
opencv3: added in optional buildFlag for enabling cuda opencv3: added CUDA enabling flags to cmakeFlags opencv3: added CUDA-speicifc FAST_MATH flag for enabling CUDA-accelerated math functions opencv3: change enableCUDA default to false opencv:added in cuda-enabling functionality.
This commit is contained in:
parent
967d3c1192
commit
30c1ad5ca3
@ -14,6 +14,7 @@
|
||||
, enableFfmpeg ? false, ffmpeg
|
||||
, enableGStreamer ? false, gst_all_1
|
||||
, enableEigen ? false, eigen
|
||||
, enableCuda ? false, cudatoolkit, gcc49
|
||||
}:
|
||||
|
||||
let
|
||||
@ -74,6 +75,7 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional enableFfmpeg ffmpeg
|
||||
++ lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base ])
|
||||
++ lib.optional enableEigen eigen
|
||||
++ lib.optional enableCuda [ cudatoolkit gcc49 ]
|
||||
;
|
||||
|
||||
propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
|
||||
@ -90,7 +92,10 @@ stdenv.mkDerivation rec {
|
||||
(opencvFlag "JPEG" enableJPEG)
|
||||
(opencvFlag "PNG" enablePNG)
|
||||
(opencvFlag "OPENEXR" enableEXR)
|
||||
] ++ lib.optionals enableContrib [ "-DOPENCV_EXTRA_MODULES_PATH=${contribSrc}/modules" ];
|
||||
(opencvFlag "CUDA" enableCuda)
|
||||
(opencvFlag "CUBLAS" enableCuda)
|
||||
] ++ lib.optionals enableContrib [ "-DOPENCV_EXTRA_MODULES_PATH=${contribSrc}/modules" ]
|
||||
++ lib.optionals enableCuda [ "-DCUDA_FAST_MATH=ON" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user