Skip to content

Commit

Permalink
Fix building Horovod when MXNet is not installed (horovod#2334)
Browse files Browse the repository at this point in the history
Signed-off-by: Travis Addair <[email protected]>
  • Loading branch information
tgaddair authored Sep 25, 2020
1 parent 4099c2b commit ee0cdf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Modules/FindMxnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ if (LEN EQUAL "5")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Mxnet REQUIRED_VARS Mxnet_LIBRARIES VERSION_VAR Mxnet_VERSION)
if(NOT MXNET_FOUND)
return()
endif()


execute_process(COMMAND ${PY_EXE} -c "import mxnet; print(mxnet.library.compiled_with_gcc_cxx11_abi() if hasattr(mxnet, 'library') and hasattr(mxnet.library, 'compiled_with_gcc_cxx11_abi') else 1)"
Expand Down

0 comments on commit ee0cdf5

Please sign in to comment.