mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-06 18:24:38 +08:00
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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
@ -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 ""
|
||||
|
Reference in New Issue
Block a user