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

Enable text build without relying on relaxed constexpr #17647

Merged
merged 10 commits into from
Jan 6, 2025

Conversation

PointKernel
Copy link
Member

@PointKernel PointKernel commented Dec 20, 2024

Description

Contributes to #7795

This PR updates text to build without depending on the relaxed constexpr build option.

Checklist

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

Copy link

copy-pr-bot bot commented Dec 20, 2024

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.

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Dec 20, 2024
@PointKernel PointKernel added feature request New feature or request non-breaking Non-breaking change labels Dec 20, 2024
@PointKernel
Copy link
Member Author

/ok to test

@PointKernel PointKernel changed the title Enable more APIs build without relying on relaxed constexpr Enable text build without relying on relaxed constexpr Dec 20, 2024
@PointKernel
Copy link
Member Author

/ok to test

@PointKernel
Copy link
Member Author

/ok to test

@PointKernel
Copy link
Member Author

/ok to test

@PointKernel
Copy link
Member Author

/ok to test

@PointKernel
Copy link
Member Author

/ok to test

@PointKernel PointKernel marked this pull request as ready for review January 6, 2025 06:48
@PointKernel PointKernel requested a review from a team as a code owner January 6, 2025 06:48
@PointKernel PointKernel requested review from harrism and lamarrr January 6, 2025 06:48
@PointKernel PointKernel added the 3 - Ready for Review Ready for review by team label Jan 6, 2025
auto const [n, m] = std::minmax(str_length, tgt_length);
auto begin = str_length < tgt_length ? d_str.begin() : d_tgt.begin();
auto itr = str_length < tgt_length ? d_tgt.begin() : d_str.begin();
auto const n = cuda::std::min(str_length, tgt_length);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we open an issue requesting minmax in libcudacxx and link it here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@miscco miscco Jan 7, 2025

Choose a reason for hiding this comment

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

This could be cuda::std::minmax if one included <cuda/std/__algorithm/minmax.h>

( We are not done with porting all algorithms aka sorting algorithms are missing) and we do not feel comfortable officially exposing algorithm without it

@PointKernel
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit c4f2e8e into rapidsai:branch-25.02 Jan 6, 2025
106 of 107 checks passed
@PointKernel PointKernel deleted the rm-constexpr branch January 6, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team feature request New feature or request libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants