Skip to content

Commit

Permalink
re-enable CPU_BASELINE=FP16 on Armv7 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoaki0705 committed Jul 2, 2019
1 parent edf2cbd commit db6a6cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/OpenCVCompilerOptimizations.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ elseif(ARM OR AARCH64)
ocv_update(CPU_VFPV3_FLAGS_ON "-mfpu=vfpv3")
ocv_update(CPU_NEON_FLAGS_ON "-mfpu=neon")
ocv_update(CPU_NEON_FLAGS_CONFLICT "-mfpu=[^ ]*")
ocv_update(CPU_FP16_FLAGS_ON "-mfpu=neon-fp16")
ocv_update(CPU_FP16_FLAGS_ON "-mfpu=neon-fp16 -mfp16-format=ieee")
ocv_update(CPU_FP16_FLAGS_CONFLICT "-mfpu=[^ ]*")
endif()
ocv_update(CPU_FP16_IMPLIES "NEON")
Expand Down Expand Up @@ -617,9 +617,6 @@ macro(ocv_compiler_optimization_options)
if(ENABLE_POWERPC)
add_extra_compiler_option("-mcpu=G3 -mtune=G5")
endif()
if(ARM)
add_extra_compiler_option("-mfp16-format=ieee")
endif(ARM)
endmacro()

macro(ocv_compiler_optimization_options_finalize)
Expand Down

0 comments on commit db6a6cc

Please sign in to comment.