Skip to content

Conversation

@lidavidm
Copy link
Member

Also, don't link every Arrow library to UCX when enabled.

Also, don't link every Arrow library to UCX when enabled.
@lidavidm lidavidm marked this pull request as ready for review May 16, 2022 20:52
@github-actions
Copy link

@github-actions
Copy link

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

Comment on lines -830 to -834
if(ARROW_WITH_UCX)
list(APPEND ARROW_LINK_LIBS ucx::ucx)
list(APPEND ARROW_STATIC_LINK_LIBS ucx::ucx)
endif()

Copy link
Contributor

@cyb70289 cyb70289 May 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing it causes bundled ucx build error.
I'm not pretty sure of what this two lines does. Is it possible to include the headers somewhere else? @kou

In file included from ../src/arrow/flight/transport/ucx/flight_transport_ucx_test.cc:33:
../src/arrow/flight/transport/ucx/ucx_internal.h:27:10: fatal error: 'ucp/api/ucp.h' file not found
#include <ucp/api/ucp.h>
         ^~~~~~~~~~~~~~~
1 error generated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you try the following patch?

diff --git a/cpp/src/arrow/flight/transport/ucx/CMakeLists.txt b/cpp/src/arrow/flight/transport/ucx/CMakeLists.txt
index 71392ec0af..d682ead633 100644
--- a/cpp/src/arrow/flight/transport/ucx/CMakeLists.txt
+++ b/cpp/src/arrow/flight/transport/ucx/CMakeLists.txt
@@ -53,6 +53,7 @@ if(ARROW_BUILD_TESTS)
         arrow_flight_static
         arrow_flight_testing_static
         arrow_flight_transport_ucx_static
+        ucx::ucx
         ${ARROW_TEST_LINK_LIBS})
   else()
     set(ARROW_FLIGHT_UCX_TEST_LINK_LIBS
@@ -60,6 +61,7 @@ if(ARROW_BUILD_TESTS)
         arrow_flight_shared
         arrow_flight_testing_shared
         arrow_flight_transport_ucx_shared
+        ucx::ucx
         ${ARROW_TEST_LINK_LIBS})
   endif()
   add_arrow_test(flight_transport_ucx_test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works. Thanks @kou!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Thanks for the fix!

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Thanks!

@kou kou closed this in a71e5f0 May 17, 2022
kou added a commit to kou/arrow that referenced this pull request May 17, 2022
… GoogleTest for arrow_flight_testing

We can remove this because apache#13169/ARROW-16588 solved the link problem.
@ursabot
Copy link

ursabot commented May 18, 2022

Benchmark runs are scheduled for baseline = 5f7a5a4 and contender = a71e5f0. a71e5f0 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.74% ⬆️0.04%] test-mac-arm
[Finished ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.32% ⬆️0.04%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] a71e5f0d ec2-t3-xlarge-us-east-2
[Finished] a71e5f0d test-mac-arm
[Finished] a71e5f0d ursa-i9-9960x
[Finished] a71e5f0d ursa-thinkcentre-m75q
[Finished] 5f7a5a45 ec2-t3-xlarge-us-east-2
[Finished] 5f7a5a45 test-mac-arm
[Finished] 5f7a5a45 ursa-i9-9960x
[Finished] 5f7a5a45 ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

kou added a commit that referenced this pull request May 18, 2022
… GoogleTest for arrow_flight_testing (#13180)

We can remove this because #13169/ARROW-16588 solved the link problem.

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@lidavidm lidavidm deleted the arrow-16588 branch May 18, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants