I am trying to compile OpenCV for the Jetson AGX Xavier (ARM64) with the option VFPV3 and get the error
CMake Error at cmake/OpenCVCompilerOptimization.cmake:527 (message)
Required baseline optimization is not supported: VFPV3
(CPU_BASELINE_REQUIRE=;VFPV3;NEON)
Then reading several posts on the internet, it seems that VFPV3 is used for ARMv7. So my question is , is VFPV3 supported or even necessary to set active in a ARMv8 platform?
According to this entry on the opencv github, using
-march=native -mcpu=native -mtune=native
is sufficient for opencv to be optimized for using NEON and VFPv3/VFPv4 when compiled with aarch64-linux-gcc.More specifically opencv/cmake/OpenCVCompilerOptimizations.cmake does not use any specific option for AARCH64, since, again, NEON and VFP are implicitly present in an any standard armv8-a implementation - see
if(NOT AARCH64)
statement:So, again, answer to
is VFPV3 supported in a ARMv8 platform
would be yes, and tois it even necessary to set VFPV3 active in a ARMv8 platform?
would be no.