mxnet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dick Carter <>
Subject Why is im2rec ever built with static mxnet lib?
Date Fri, 28 Aug 2020 23:37:18 GMT
In CMakeLists.txt, the recipe for building im2rec includes the lines:

    target_link_libraries(im2rec mxnet)
    target_link_libraries(im2rec ${BEGIN_WHOLE_ARCHIVE} mxnet_static ${END_WHOLE_ARCHIVE})

Is there some requirement on unix or windows that forces the choice of static-vs-dynamic linking
to mxnet?  Is the motivation for static linking that in general one prefers a more portable
binary (even at the expense of a 2GB executable)?  Should there be a flag to let the user
select the build approach?

View raw message