K1的V扩展不支持fp16精度吗?

K1实现了V,zfh,zvfh等扩展,应该有对16精度浮点数的运算支持

#include <rvv.h>
#include <utils.h>

void test01_rvv_f16()
{
    cout << "####### " << __func__ << " #######" << endl;
    f16 a[ARRAY_SIZE] = {};
    init_array_f16_linear(a, ARRAY_SIZE);
    print_array_f16(a, ARRAY_SIZE);
    // rvv f16 operation start
    size_t vl = __riscv_vsetvl_e16m1(ARRAY_SIZE);
    cout << "vl = " << vl << endl;
    vfloat16m1_t va = __riscv_vle16_v_f16m1(a, vl);
    // __riscv_vse16_v_f16m1(a + vl, va, vl);
    // rvv f16 operation end
    print_array_f16(a, ARRAY_SIZE);
}

编译上面的代码会报错如下图所示

请问该问题如何解决?

该问题已经解决。

请问UU怎么解决的

是编译器的问题,clang可以

用高版本的gcc应该也是可以的,bianbu里面装下gcc 14