Skip to content

Conversation

jgfouca
Copy link
Member

@jgfouca jgfouca commented Sep 18, 2025

pm-gpu + nvidia cannot link WSM in its prior form.

Testing

Tested a branch @ndkeen gave me. It builds.

pm-gpu + nvidia cannot link WSM in its prior form.
@jgfouca jgfouca requested review from bartgol and ndkeen September 18, 2025 21:34
@jgfouca jgfouca self-assigned this Sep 18, 2025
@jgfouca
Copy link
Member Author

jgfouca commented Sep 18, 2025

I tried changing the constant to a static inline. That did not help. There's some weirdness going on with the constant being used as a default argument value.

@bartgol
Copy link
Contributor

bartgol commented Sep 18, 2025

How about a constexpr function? (possibly decorated via KOKKOS_INLINE_FUNCTION if it needs to be device friendly)

@bartgol
Copy link
Contributor

bartgol commented Sep 18, 2025

Another thought: while at it, we could prob add a check that the factor is >0? Something down the road may crash anyways, but at least we could stop early with a meaningful message...

@jgfouca
Copy link
Member Author

jgfouca commented Sep 19, 2025

@bartgol , good points. Done.

@jgfouca jgfouca merged commit 2e3e08d into master Sep 19, 2025
4 checks passed
@jgfouca jgfouca deleted the jgfouca/wsm_link_fix branch September 19, 2025 17:28
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.

2 participants