Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rapids_init_cuda_runtime. #13543

Closed
wants to merge 1 commit into from

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Jun 9, 2023

Description

This PR updates libcudf to use rapids_init_cuda_runtime.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@bdice bdice requested a review from a team as a code owner June 9, 2023 16:34
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Jun 9, 2023
@@ -710,18 +714,6 @@ if(TARGET conda_env)
target_link_libraries(cudf PRIVATE conda_env)
endif()

if(CUDA_STATIC_RUNTIME)
Copy link
Contributor

Choose a reason for hiding this comment

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

We will still need

if(CUDA_STATIC_RUNTIME AND NOT BUILD_SHARED_LIBS )
  # Make sure to export to consumers what runtime we used
  target_link_libraries(cudf PUBLIC CUDA::cudart_static)
endif()

since when doing static linking libcudf won't have linked to the cuda runtime and so we need to tell the consumer that is the intent. 

@vyasr
Copy link
Contributor

vyasr commented Jan 23, 2024

Closing in favor of #14833

@vyasr vyasr closed this Jan 23, 2024
rapids-bot bot pushed a commit that referenced this pull request Jan 23, 2024
…et (#14833)

This PR uses rapids-cmake to handle per-target CMake linking to cudart.

Replaces #13543 and #11641.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Mark Harris (https://github.com/harrism)
  - Robert Maynard (https://github.com/robertmaynard)

URL: #14833
PointKernel pushed a commit to PointKernel/cudf that referenced this pull request Jan 25, 2024
…et (rapidsai#14833)

This PR uses rapids-cmake to handle per-target CMake linking to cudart.

Replaces rapidsai#13543 and rapidsai#11641.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Mark Harris (https://github.com/harrism)
  - Robert Maynard (https://github.com/robertmaynard)

URL: rapidsai#14833
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants