mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
build: enable RISC-V FP16 support in the toolchain
This commit is contained in:
parent
f9a297e52c
commit
bd26d02908
@ -1,6 +1,10 @@
|
||||
# see https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html#index-march-14
|
||||
function(ocv_set_platform_flags VAR)
|
||||
if(ENABLE_RVV OR RISCV_RVV_SCALABLE)
|
||||
if(ENABLE_RVV_ZVFH OR ENABLE_RVV_FP16)
|
||||
set(flags "-march=rv64gc_v_zvfh")
|
||||
elseif(ENABLE_RVV_ZVFHMIN OR ENABLE_FP16)
|
||||
set(flags "-march=rv64gc_v_zvfhmin")
|
||||
elseif(ENABLE_RVV OR RISCV_RVV_SCALABLE)
|
||||
set(flags "-march=rv64gcv")
|
||||
else()
|
||||
set(flags "-march=rv64gc")
|
||||
|
Loading…
Reference in New Issue
Block a user