Skip to content

Commit

Permalink
[gloo] reenable libuv build (2/N)
Browse files Browse the repository at this point in the history
Summary:
As part of reviving CI, reenable libuv that is causing CI errors.

Test Plan:
Test on github.

ghstack-source-id: 73f01769ba3c9bbece7b6ffe1299c3dc6aefe814
Pull Request resolved: #396
  • Loading branch information
c-p-i-o committed Nov 26, 2024
1 parent 8a3d399 commit 171afa1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
git submodule update --init --recursive
mkdir -p build
cd build
cmake .. -DBUILD_TEST=ON -Dlibuv_ROOT=${{ env.libuv_path }} -DGTEST_LIBRARY=${{ env.gtest_lib_path }}/lib/gtestd.lib -DGTEST_INCLUDE_DIR=${{ env.gtest_lib_path }}/include -DGTEST_MAIN_LIBRARY=${{ env.gtest_lib_path }}/lib/gtest_maind.lib
cmake .. -DBUILD_TEST=ON -Dlibuv_ROOT=${{ env.libuv_path }} -DGTEST_LIBRARY=${{ env.gtest_lib_path }}/lib/gtestd.lib -DGLOO_HAVE_TRANSPORT_UV=OFF -DGTEST_INCLUDE_DIR=${{ env.gtest_lib_path }}/include -DGTEST_MAIN_LIBRARY=${{ env.gtest_lib_path }}/lib/gtest_maind.lib
msbuild ALL_BUILD.vcxproj
- name: Test
run: |
Expand Down
11 changes: 5 additions & 6 deletions gloo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ else()
set(GLOO_HAVE_TRANSPORT_IBVERBS 0)
endif()

# TODO: turn ths back on once tests are passing again.
# Compile uv transport if libuv is available
#if(USE_LIBUV)
# set(GLOO_HAVE_TRANSPORT_UV 1)
#else()
# set(GLOO_HAVE_TRANSPORT_UV 0)
#endif()
if(USE_LIBUV)
set(GLOO_HAVE_TRANSPORT_UV 1)
else()
set(GLOO_HAVE_TRANSPORT_UV 0)
endif()

add_subdirectory(common)
add_subdirectory(mpi)
Expand Down
13 changes: 6 additions & 7 deletions gloo/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ endif()
add_executable(gloo_test ${GLOO_TEST_SRCS})
target_link_libraries(gloo_test gloo gtest ${GLOO_TEST_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto)

#TODO: re-enable LIBUV once CI is green again
#if(MSVC AND USE_LIBUV)
# add_custom_command(TARGET gloo_test POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_if_different
# "${libuv_DLL_PATH}"
# $<TARGET_FILE_DIR:gloo_test>)
#endif()
if(MSVC AND USE_LIBUV)
add_custom_command(TARGET gloo_test POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${libuv_DLL_PATH}"
$<TARGET_FILE_DIR:gloo_test>)
endif()

if(USE_CUDA)
if(NOT MSVC)
Expand Down
6 changes: 3 additions & 3 deletions gloo/transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ if(GLOO_HAVE_TRANSPORT_IBVERBS)
endif()

# TODO: skip UV for now until CI is revived.
#if(GLOO_HAVE_TRANSPORT_UV)
# add_subdirectory(uv)
#endif()
if(GLOO_HAVE_TRANSPORT_UV)
add_subdirectory(uv)
endif()

list(APPEND GLOO_SRCS ${GLOO_TRANSPORT_SRCS})
list(APPEND GLOO_HDRS ${GLOO_TRANSPORT_HDRS})
Expand Down

0 comments on commit 171afa1

Please sign in to comment.