Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncnn-20240410使用-DNCNN_BF16=OFF编译报错 #5421

Closed
xiaozhi003 opened this issue Apr 11, 2024 · 3 comments
Closed

ncnn-20240410使用-DNCNN_BF16=OFF编译报错 #5421

xiaozhi003 opened this issue Apr 11, 2024 · 3 comments
Labels

Comments

@xiaozhi003
Copy link

xiaozhi003 commented Apr 11, 2024

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

使用-DNCNN_BF16=OFF参数编译Android和iOS库报错
image

context | 编译/运行环境 | バックグラウンド

MacBook,M1芯片,版本:14.4.1
NDK版本:25.1.8937393
Android平台和iOS平台

编译脚本

cmake -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
    -DANDROID_ABI="armeabi-v7a" \
    -DANDROID_ARM_NEON=ON \
    -DNCNN_DISABLE_RTTI=ON \
    -DNCNN_DISABLE_EXCEPTION=ON \
    -DNCNN_VULKAN=OFF \
    -DNCNN_BF16=OFF \
    -DNCNN_INT8=OFF \
    -DNCNN_OPENMP=OFF \
    -DANDROID_PLATFORM=android-19 ..

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

  1. 使用最新版本ncnn-20240410,采用以往的编译脚本报错
  2. 发现 -DNCNN_BF16=OFF 使用该参数导致编译报错,打开无问题

more | 其他 | その他

@nihui
Copy link
Member

nihui commented Apr 11, 2024

#5422

请测试下这个 pr 的修改

@nihui nihui added the bug label Apr 11, 2024
@xiaozhi003
Copy link
Author

#5422

请测试下这个 pr 的修改

这个没问题了!

@nihui
Copy link
Member

nihui commented Apr 11, 2024

#5422
请测试下这个 pr 的修改

这个没问题了!

感谢报告!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants