1. 10 11月, 2021 1 次提交
    • P
      Add support for runtime CPU feature check on POWER on FreeBSD. · 68e425f8
      Piotr Kubaj 提交于
      1. Code uses PPC_FEATURE_HAS_VSX, but it's not checked similarly to
      PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00 for availability. FreeBSD has
      those macros in machine/cpu.h, but I went with the way chosen for
      PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00. Other than that, FreeBSD also
      has sys/auxv.h and that's where elf_aux_info() is defined.
      2. getauxval() is actually Linux-only, but code checked for __unix__. It won't
      work on all UNIX, so change it back to __linux__. Add another code variant
      strictly for FreeBSD.
      3. Update comment. This commit adds code for FreeBSD, but recently there
      appeared support for powerpc64 in OpenBSD.
      68e425f8
  2. 19 10月, 2021 7 次提交
  3. 18 10月, 2021 2 次提交
  4. 17 10月, 2021 1 次提交
    • W
      Fixed typo in CV_Error message · f9e747db
      Wehzie 提交于
      Error was "Input parameters must be a matrices!", but "matrices" is plural and doesn't allow the unspecific article "a".
      f9e747db
  5. 15 10月, 2021 2 次提交
  6. 14 10月, 2021 2 次提交
  7. 13 10月, 2021 2 次提交
  8. 12 10月, 2021 4 次提交
  9. 11 10月, 2021 1 次提交
  10. 09 10月, 2021 2 次提交
  11. 08 10月, 2021 12 次提交
  12. 07 10月, 2021 2 次提交
    • S
      add new supported MSVC version · 04b40ff2
      Stanislaw Halik 提交于
      04b40ff2
    • O
      Merge pull request #20725 from mologie:fix-dnn-tf-on-arm · a3d7811f
      Oliver Kuckertz 提交于
      * dnn: fix unaligned memory access crash on armv7
      
      The getTensorContent function would return a Mat pointing to some
      member of a Protobuf-encoded message. Protobuf does not make any
      alignment guarantees, which results in a crash on armv7 when loading
      models while bit 2 is set in /proc/cpu/alignment (or the relevant
      kernel feature for alignment compatibility is disabled). Any read
      attempt from the previously unaligned data member would send SIGBUS.
      
      As workaround, this commit makes an aligned copy via existing clone
      functionality in getTensorContent. The unsafe copy=false option is
      removed. Unfortunately, a rather crude hack in PReLUSubgraph in fact
      writes(!) to the Protobuf message. We limit ourselves to fixing the
      alignment issues in this commit, and add getTensorContentRefUnaligned
      to cover the write case with a safe memcpy. A FIXME marks the issue.
      
      * dnn: reduce amount of .clone() calls
      
      * dnn: update FIXME comment
      Co-authored-by: NAlexander Alekhin <alexander.a.alekhin@gmail.com>
      a3d7811f
  13. 06 10月, 2021 2 次提交