mxnet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dick Carter <dickjc...@apache.org>
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:

  if(MSVC)
    target_link_libraries(im2rec mxnet)
  else()
    target_link_libraries(im2rec ${BEGIN_WHOLE_ARCHIVE} mxnet_static ${END_WHOLE_ARCHIVE})
  endif()

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?

Mime
View raw message