mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 16:22:57 +08:00
[Bug Fix] fix libomp.so not found error (#715)
* [Android] Add VisSegmentation NEON support * [ARM] change vqaddq_u8 -> vaddq_u8 * [ARM] change vqaddq_u8 -> vaddq_u8 * [Bug Fix] add FDASSERT * update assert info * add QuantizeBlendingWeight8 * Update QuantizeBlendingWeight8 * Update VisSegmentation * [Visualize] add DefaultVisualizeType and EnableFastVisuzlie * fix typos * fix typo * Update VisSegmentation * [Android] Add omp parallel support for Android * Add omp schedule(static) * [Bug Fix] fix libomp.so not found error
This commit is contained in:
@@ -68,6 +68,7 @@ option(WITH_TESTING "Whether to compile with unittest." OFF)
|
||||
############################# Options for Android cross compiling #########################
|
||||
option(WITH_OPENCV_STATIC "Use OpenCV static lib for Android." OFF)
|
||||
option(WITH_LITE_STATIC "Use Paddle Lite static lib for Android." OFF)
|
||||
option(WITH_OPENMP "Use OpenMP support for Android." OFF)
|
||||
|
||||
# Please don't open this flag now, some bugs exists.
|
||||
# Only support Linux Now
|
||||
@@ -489,12 +490,15 @@ if(MSVC)
|
||||
target_compile_options(${LIBRARY_NAME} PRIVATE "$<$<BUILD_INTERFACE:$<COMPILE_LANGUAGE:CXX>>:/wd4251>$<$<BUILD_INTERFACE:$<COMPILE_LANGUAGE:CUDA>>:-Xcompiler=/wd4251>")
|
||||
endif()
|
||||
|
||||
if (ANDROID)
|
||||
# extra depend libs for android
|
||||
if(ANDROID)
|
||||
find_library(log-lib log)
|
||||
list(APPEND DEPEND_LIBS ${log-lib})
|
||||
find_package(OpenMP)
|
||||
if(OpenMP_CXX_FOUND)
|
||||
list(APPEND DEPEND_LIBS OpenMP::OpenMP_CXX)
|
||||
if(WITH_OPENMP)
|
||||
find_package(OpenMP)
|
||||
if(OpenMP_CXX_FOUND)
|
||||
list(APPEND DEPEND_LIBS OpenMP::OpenMP_CXX)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@@ -31,6 +31,11 @@ android {
|
||||
version "3.10.2"
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs.srcDirs = ['libs']
|
||||
}
|
||||
}
|
||||
ndkVersion '20.1.5948944'
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user