mxnet¶
mxnet is not compatible with OpenCV 4.0, you have to explicitly switch
to OpenCV 3.4:
# config.cmake
hunter_config(OpenCV VERSION 3.4.3-p4)
Please check TVM documentation for additional requirements.
Note
- Package was tested only on Linux and macOS
- Library type is forced to be
SHAREDhence all dependencies should be shared libraries (use HUNTER_BUILD_SHARED_LIBS=ON) (not tested!) or build with toolchain with PIC.
Note
It’s highly recommended to use export OMP_NUM_THREADS=1 while
running code and compiling MXNet. Not using this variable can leads to
random runtime errors and build freezes.
hunter_add_package(mxnet)
find_package(mxnet CONFIG REQUIRED)
add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC mxnet::mxnet)