mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: opencv: Update configure flags.
* gnu/packages/image-processing.scm (opencv)[arguments]: Don't use precompiled headers. Enable all available CPU optimizations.
This commit is contained in:
parent
b5baf9529e
commit
fdeb2def6a
1 changed files with 3 additions and 2 deletions
|
@ -237,16 +237,17 @@ (define-public opencv
|
||||||
(list "-DWITH_IPP=OFF"
|
(list "-DWITH_IPP=OFF"
|
||||||
"-DWITH_ITT=OFF"
|
"-DWITH_ITT=OFF"
|
||||||
"-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
|
"-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
|
||||||
|
"-DENABLE_PRECOMPILED_HEADERS=OFF"
|
||||||
|
|
||||||
;; CPU-Features:
|
;; CPU-Features:
|
||||||
;; See cmake/OpenCVCompilerOptimizations.cmake
|
;; See cmake/OpenCVCompilerOptimizations.cmake
|
||||||
;; (CPU_ALL_OPTIMIZATIONS) for a list of all optimizations
|
;; (CPU_ALL_OPTIMIZATIONS) for a list of all optimizations
|
||||||
;; BASELINE is the minimum optimization all CPUs must support
|
;; BASELINE is the minimum optimization all CPUs must support
|
||||||
;;
|
;;
|
||||||
;; DISPATCH is the list of optional dispatches
|
;; DISPATCH is the list of optional dispatches. We add them all.
|
||||||
"-DCPU_BASELINE=SSE2, NEON"
|
"-DCPU_BASELINE=SSE2, NEON"
|
||||||
|
|
||||||
"-DCPU_DISPATCH=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2"
|
"-DCPU_DISPATCH=NEON;VFPV3;FP16;SSE;SSE2;SSE3;SSSE3;SSE4_1;SSE4_2;POPCNT;AVX;FP16;AVX2;FMA3;AVX_512F;AVX512_SKX"
|
||||||
,@(if (string-prefix? "x86_64" (or (%current-target-system)
|
,@(if (string-prefix? "x86_64" (or (%current-target-system)
|
||||||
(%current-system)))
|
(%current-system)))
|
||||||
'("-DCPU_DISPATCH_REQUIRE=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2")
|
'("-DCPU_DISPATCH_REQUIRE=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2")
|
||||||
|
|
Loading…
Reference in a new issue