Skip to content

Conversation

@johnbowen42
Copy link
Contributor

@johnbowen42 johnbowen42 commented Sep 15, 2025

This PR simplifies some of the launch SFINAE for cuda/hip. It also moves constexpr branching into parampack calls, simplifying the forall/launch implementations somewhat.

@artv3
Copy link
Member

artv3 commented Sep 16, 2025

Is there anything to do for the OpenMP backend?

@johnbowen42
Copy link
Contributor Author

johnbowen42 commented Sep 29, 2025

Is there anything to do for the OpenMP backend?

I couldn't identify an easy simplification for the OpenMP backend. We could wrap different pragmas with if constexpr, but I don't think it would save that much duplication

@johnbowen42 johnbowen42 force-pushed the bowen/constexpr-if-simplifications branch from 9bab1a8 to 8cbc7c4 Compare September 29, 2025 23:48
@johnbowen42 johnbowen42 requested a review from a team October 6, 2025 21:20
@johnbowen42 johnbowen42 force-pushed the bowen/constexpr-if-simplifications branch from 6ef56d4 to 21a74dd Compare October 7, 2025 17:35
struct is_ForallParamPack_empty<ForallParamPack<>> : std::true_type
{};
} // namespace type_traits

Copy link
Member

Choose a reason for hiding this comment

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

maybe we should move this to a "params utils" file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did something similar--I moved all our type trait stuff into its own header

Copy link
Member

@artv3 artv3 left a comment

Choose a reason for hiding this comment

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

Look great! Just 1 comment on where to place helpers.

@johnbowen42 johnbowen42 requested a review from artv3 October 10, 2025 21:07
@johnbowen42
Copy link
Contributor Author

@artv3 I thought a bit more about our type traits and reorganized the headers a bit. I remembered I made a type traits header for kernel-specific work. I renamed that to be more consistent, and made another TypeTraits.hpp for reduction work. Let me know what you think

@johnbowen42 johnbowen42 merged commit 8178a01 into develop Oct 13, 2025
20 checks passed
@johnbowen42 johnbowen42 deleted the bowen/constexpr-if-simplifications branch October 13, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants