mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Change the lsx to baseline features.
This patch change lsx to baseline feature, and lasx to dispatch feature. Additionally, the runtime detection methods for lasx and lsx have been modified.
This commit is contained in:
@@ -403,11 +403,8 @@ elseif(LOONGARCH64)
|
||||
ocv_update(CPU_KNOWN_OPTIMIZATIONS "LSX;LASX")
|
||||
ocv_update(CPU_LSX_FLAGS_ON "-mlsx")
|
||||
ocv_update(CPU_LASX_FLAGS_ON "-mlasx")
|
||||
if("${CPU_BASELINE_DISABLE}" STREQUAL "LASX")
|
||||
set(CPU_BASELINE "LSX" CACHE STRING "${HELP_CPU_BASELINE}")
|
||||
else()
|
||||
set(CPU_BASELINE "LASX" CACHE STRING "${HELP_CPU_BASELINE}")
|
||||
endif()
|
||||
set(CPU_BASELINE "LSX" CACHE STRING "${HELP_CPU_BASELINE}")
|
||||
set(CPU_DISPATCH "LASX" CACHE STRING "${HELP_CPU_DISPATCH}")
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user