Added code optimization for OpenCV compilation

- Changed -DCV_DISABLE_OPTIMIZATION to OFF
- This re-enable code optimization (dispatched code/intrinsics/loop unrolling/etc)
This commit is contained in:
Joachim
2020-03-26 09:16:22 +01:00
parent 66f9ed9bad
commit 50b4e6fc53
21 changed files with 193 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -21,7 +21,8 @@ class AllocatorStatistics : public AllocatorStatisticsInterface
{
protected:
#ifdef CV_CXX11
std::atomic<long> curr, total, total_allocs, peak; // ESP32 modification (from <long long> to <long>)
// std::atomic<long long> curr, total, total_allocs, peak;
std::atomic<long> curr, total, total_allocs, peak; // esp32 doesn't support hardware 64bit atomic. FIXME: add software support
#else
volatile long long curr, total, total_allocs, peak; // overflow is possible, CV_XADD operates with 'int' only
#endif

View File

@ -8,7 +8,7 @@
/* #undef CV_ENABLE_INTRINSICS */
/* OpenCV additional optimized code */
#define CV_DISABLE_OPTIMIZATION
/* #undef CV_DISABLE_OPTIMIZATION */
/* Compile for 'real' NVIDIA GPU architectures */
#define CUDA_ARCH_BIN ""