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 GCC 13 in CUDA 12 conda builds. #567

Merged

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Jan 13, 2025

Description

conda-forge is using GCC 13 for CUDA 12 builds. This PR updates CUDA 12 conda builds to use GCC 13, for alignment.

These PRs should be merged in a specific order, see rapidsai/build-planning#129 for details.

Closes rapidsai/build-planning#129.

@bdice bdice added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels Jan 13, 2025
Copy link

copy-pr-bot bot commented Jan 13, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice bdice marked this pull request as ready for review January 13, 2025 19:29
@bdice bdice requested review from a team as code owners January 13, 2025 19:29
@bdice bdice requested a review from jameslamb January 13, 2025 19:29
@bdice bdice self-assigned this Jan 13, 2025
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Approving the packaging changes, assuming the fix for this build issue will be small and/or reviewed by C++ codeowners:

/opt/conda/conda-bld/work/cpp/src/neighbors/detail/dynamic_batching.cuh: In constructor 'constexpr cuvs::neighbors::dynamic_batching::detail::batch_token::batch_token(uint32_t)':
/opt/conda/conda-bld/work/cpp/src/neighbors/detail/dynamic_batching.cuh:242:62: error: call to non-'constexpr' function 'uint32_t& cuvs::neighbors::dynamic_batching::detail::batch_token::id()' [-Werror=invalid-constexpr]
  242 |   explicit constexpr inline batch_token(uint32_t buffer_id) { id() = buffer_id; }
      |                                                      ~~~~~~~~^~
/opt/conda/conda-bld/work/cpp/src/neighbors/detail/dynamic_batching.cuh:258:1: note: 'uint32_t& cuvs::neighbors::dynamic_batching::detail::batch_token::id()' declared here
  258 |   RAFT_INLINE_FUNCTION auto id() noexcept -> uint32_t&
      | ^ 

(build link)

@achirkin
Copy link
Contributor

achirkin commented Jan 16, 2025

Thanks, here's the fix #582

@bdice bdice requested a review from a team as a code owner January 16, 2025 23:21
@github-actions github-actions bot added the cpp label Jan 16, 2025
@github-actions github-actions bot removed the CMake label Jan 16, 2025
@bdice bdice removed the request for review from a team January 16, 2025 23:41
Comment on lines +317 to +318
std::shared_ptr<KVP[]> exp_h(new KVP[size]);
std::shared_ptr<KVP[]> act_h(new KVP[size]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed so that new[] matches with delete[]. Without this, the deleter uses delete instead of delete[] and compilation fails.

@bdice
Copy link
Contributor Author

bdice commented Jan 17, 2025

/merge

@cjnolet
Copy link
Member

cjnolet commented Jan 17, 2025

I'm okay admin merging this

@AyodeAwe AyodeAwe merged commit f1de1b2 into rapidsai:branch-25.02 Jan 21, 2025
35 of 54 checks passed
@jakirkham
Copy link
Member

Thanks all! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use GCC 13 in CUDA 12+ builds
7 participants