@@ -67,7 +67,6 @@ set(ARROW_THIRDPARTY_DEPENDENCIES
67
67
Snappy
68
68
Substrait
69
69
Thrift
70
- ucx
71
70
utf8proc
72
71
xsimd
73
72
ZLIB
@@ -218,8 +217,6 @@ macro(build_dependency DEPENDENCY_NAME)
218
217
build_substrait()
219
218
elseif ("${DEPENDENCY_NAME} " STREQUAL "Thrift" )
220
219
build_thrift()
221
- elseif ("${DEPENDENCY_NAME} " STREQUAL "ucx" )
222
- build_ucx()
223
220
elseif ("${DEPENDENCY_NAME} " STREQUAL "utf8proc" )
224
221
build_utf8proc()
225
222
elseif ("${DEPENDENCY_NAME} " STREQUAL "xsimd" )
@@ -821,13 +818,6 @@ else()
821
818
)
822
819
endif ()
823
820
824
- if (DEFINED ENV{ARROW_UCX_URL})
825
- set (ARROW_UCX_SOURCE_URL "$ENV{ARROW_UCX_URL} " )
826
- else ()
827
- set_urls(ARROW_UCX_SOURCE_URL
828
- "https://github.com/openucx/ucx/archive/v${ARROW_UCX_BUILD_VERSION} .tar.gz" )
829
- endif ()
830
-
831
821
if (DEFINED ENV{ARROW_UTF8PROC_URL})
832
822
set (ARROW_UTF8PROC_SOURCE_URL "$ENV{ARROW_UTF8PROC_URL} " )
833
823
else ()
@@ -5548,85 +5538,5 @@ if(ARROW_WITH_AZURE_SDK)
5548
5538
set (AZURE_SDK_LINK_LIBRARIES Azure::azure-storage-files -datalake
5549
5539
Azure::azure-storage-blobs Azure::azure-identity)
5550
5540
endif ()
5551
- # ----------------------------------------------------------------------
5552
- # ucx - communication framework for modern, high-bandwidth and low-latency networks
5553
-
5554
- macro (build_ucx)
5555
- message (STATUS "Building UCX from source" )
5556
-
5557
- set (UCX_PREFIX "${CMAKE_CURRENT_BINARY_DIR} /ucx_ep-install" )
5558
-
5559
- # link with static ucx libraries leads to test failures, use shared libs instead
5560
- set (UCX_SHARED_LIB_UCP "${UCX_PREFIX} /lib/libucp${CMAKE_SHARED_LIBRARY_SUFFIX} " )
5561
- set (UCX_SHARED_LIB_UCT "${UCX_PREFIX} /lib/libuct${CMAKE_SHARED_LIBRARY_SUFFIX} " )
5562
- set (UCX_SHARED_LIB_UCS "${UCX_PREFIX} /lib/libucs${CMAKE_SHARED_LIBRARY_SUFFIX} " )
5563
- set (UCX_SHARED_LIB_UCM "${UCX_PREFIX} /lib/libucm${CMAKE_SHARED_LIBRARY_SUFFIX} " )
5564
-
5565
- set (UCX_CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure)
5566
- list (APPEND
5567
- UCX_CONFIGURE_COMMAND
5568
- "CC=${CMAKE_C_COMPILER} "
5569
- "CXX=${CMAKE_CXX_COMPILER} "
5570
- "CFLAGS=${EP_C_FLAGS} "
5571
- "CXXFLAGS=${EP_CXX_FLAGS} "
5572
- "--prefix=${UCX_PREFIX} "
5573
- "--enable-mt"
5574
- "--enable-shared" )
5575
- if (${UPPERCASE_BUILD_TYPE} STREQUAL "DEBUG" )
5576
- list (APPEND
5577
- UCX_CONFIGURE_COMMAND
5578
- "--enable-profiling"
5579
- "--enable-frame-pointer"
5580
- "--enable-stats"
5581
- "--enable-fault-injection"
5582
- "--enable-debug-data" )
5583
- else ()
5584
- list (APPEND
5585
- UCX_CONFIGURE_COMMAND
5586
- "--disable-logging"
5587
- "--disable-debug"
5588
- "--disable-assertions"
5589
- "--disable-params-check" )
5590
- endif ()
5591
- set (UCX_BUILD_COMMAND ${MAKE} ${MAKE_BUILD_ARGS} )
5592
- externalproject_add(ucx_ep
5593
- ${EP_COMMON_OPTIONS}
5594
- URL ${ARROW_UCX_SOURCE_URL}
5595
- URL_HASH "SHA256=${ARROW_UCX_BUILD_SHA256_CHECKSUM} "
5596
- CONFIGURE_COMMAND ${UCX_CONFIGURE_COMMAND}
5597
- BUILD_IN_SOURCE 1
5598
- BUILD_COMMAND ${UCX_BUILD_COMMAND}
5599
- BUILD_BYPRODUCTS "${UCX_SHARED_LIB_UCP} " "${UCX_SHARED_LIB_UCT} "
5600
- "${UCX_SHARED_LIB_UCS} " "${UCX_SHARED_LIB_UCM} "
5601
- INSTALL_COMMAND ${MAKE} install )
5602
-
5603
- # ucx cmake module sets UCX_INCLUDE_DIRS
5604
- set (UCX_INCLUDE_DIRS "${UCX_PREFIX} /include" )
5605
- file (MAKE_DIRECTORY "${UCX_INCLUDE_DIRS} " )
5606
-
5607
- add_library (ucx::ucp SHARED IMPORTED )
5608
- set_target_properties (ucx::ucp PROPERTIES IMPORTED_LOCATION "${UCX_SHARED_LIB_UCP} " )
5609
- add_library (ucx::uct SHARED IMPORTED )
5610
- set_target_properties (ucx::uct PROPERTIES IMPORTED_LOCATION "${UCX_SHARED_LIB_UCT} " )
5611
- add_library (ucx::ucs SHARED IMPORTED )
5612
- set_target_properties (ucx::ucs PROPERTIES IMPORTED_LOCATION "${UCX_SHARED_LIB_UCS} " )
5613
-
5614
- add_dependencies (ucx::ucp ucx_ep)
5615
- add_dependencies (ucx::uct ucx_ep)
5616
- add_dependencies (ucx::ucs ucx_ep)
5617
- endmacro ()
5618
-
5619
- if (ARROW_WITH_UCX)
5620
- resolve_dependency(ucx
5621
- ARROW_CMAKE_PACKAGE_NAME
5622
- ArrowFlight
5623
- ARROW_PC_PACKAGE_NAME
5624
- arrow-flight
5625
- PC_PACKAGE_NAMES
5626
- ucx)
5627
- add_library (ucx::ucx INTERFACE IMPORTED )
5628
- target_include_directories (ucx::ucx INTERFACE "${UCX_INCLUDE_DIRS} " )
5629
- target_link_libraries (ucx::ucx INTERFACE ucx::ucp ucx::uct ucx::ucs)
5630
- endif ()
5631
5541
5632
5542
message (STATUS "All bundled static libraries: ${ARROW_BUNDLED_STATIC_LIBS} " )
0 commit comments