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

nvtx support macos #474

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Sep 25, 2024

Closes #471

@madsbk madsbk added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Sep 25, 2024
@madsbk madsbk marked this pull request as ready for review September 25, 2024 20:12
@madsbk madsbk requested a review from a team as a code owner September 25, 2024 20:12
template <typename T, std::enable_if_t<std::is_integral_v<T>>* = nullptr>
[[nodiscard]] std::int64_t convert_to_64bit(T value)
{
if (value >= std::numeric_limits<std::int64_t>::max()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is probably not performance critical, but we could check if the type can overflow int64 with an if constexpr, so some instantiations don't even have the max() check.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, done

@madsbk
Copy link
Member Author

madsbk commented Sep 30, 2024

/merge

@rapids-bot rapids-bot bot merged commit 35ec784 into rapidsai:branch-24.10 Sep 30, 2024
56 checks passed
@madsbk madsbk deleted the convert_to_64bit branch October 7, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Ambiguous call to nvtx3::payload::payload() on macOS
3 participants