Skip to content

hisiv500.toolchain.cmake交叉编译出错 #4147

@ElegantGod

Description

@ElegantGod

error log | 日志或报错信息 | ログ

/home/Hisi/ncnn/src/layer/arm/innerproduct_fp16s.h: In function ‘void ncnn::innerproduct_pack4_fp16s_neon(const ncnn::Mat&, ncnn::Mat&, const ncnn::Mat&, const ncnn::Mat&, int, const ncnn::Mat&, const ncnn::Option&)’:
/home/Hisi/ncnn/src/layer/arm/innerproduct_fp16s.h:256:83: error: ‘vreinterpret_f16_u16’ was not declared in this scope
float32x4_t _w0 = vcvt_f32_f16(vreinterpret_f16_u16(vget_low_u16(_w01)));

how to reproduce | 复现步骤 | 再現方法

1.cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/hisiv500.toolchain.cmake ..
2.看了下arm_neon.h里面没有vreinterpret_f16_u16这个函数,所以就报错了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions