-
Notifications
You must be signed in to change notification settings - Fork 771
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
ndk从17升级到21后,推论报错 “library "libomp.so" not found” #1157
Comments
可直接从ndk r21中拷贝一份libomp.so到手机目录上 |
@powerpwang |
设备GPU端的速度不受ARM82影响,升级ARM82后opencl GPU速度没有提升是正常的。 |
高版本ndk使用静态openmp库可避免这个问题:android/ndk#1028 |
@powerpwang |
@zhuoran-guo 参考 https://github.com/Tencent/TNN/blob/master/doc/en/user/api_en.md 这个文档,TNN NetworkConfig里面设置enable_tune_kernel为true |
@lnmdlong |
可以试一下,改成静态的形式 |
ndk17的时候没有问题,到ndk21的时候报错,
adb -H "host.docker.internal" -s 717cc280 shell "export LD_LIBRARY_PATH=/data/local/tmp/ai-performance/tnn/android-armv8; /data/local/tmp/ai-performance/tnn/android-armv8/TNNTest -mt tnn -mp /data/local/tmp/ai-performance/tnn/incam-face-c-7.0-2.0.tnnproto -dt ARM -ic 100 -wc 20 -th 1 -dl 0,1"
CANNOT LINK EXECUTABLE "/data/local/tmp/ai-performance/tnn/android-armv8/TNNTest": library "libomp.so" not found
Aborted
�cmakelist.txt里面,TNN_OPENMP_ENABLE=OFF了,为啥还报错找不到libomp.so的库?
而且TNN_OPENMP_ENABLE=ON之后也一样报错
The text was updated successfully, but these errors were encountered: