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);
}
编译上面的代码会报错如下图所示
请问该问题如何解决?