-
Notifications
You must be signed in to change notification settings - Fork 44
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
Make basic CDI functions constexpr #1109
Conversation
+ Move functions that don't require any class member data outside CDI class + Mark basic integration functions as constexpr + Remove files that formerly held low-level planck integration functions
@alexrlongne It is interesting that LLVM accepts your code, but gcc and msvc fail with the same error, |
@KineticTheory Ahhh ok, I was curious if this would happen. Looks like the "data" function of |
Will this change the function signatures in such a way that it will break downstream codes? (Isn't a problem; I'd just like a heads-up and @jhchang-lanl would probably too :) ) |
@attom Yeah, it might, sorry, I should have marked this WIP right at submission. I'll do a quick grep through your repos in a minute. |
OK! I think I fixed the @attom I have a branch with the fixes for Capsaicin. A few functions live in the |
@alexrlongne Don't you wish there were some language standards that compiler's would adhere to? |
[Z]
From: "Kelly (KT) Thompson" ***@***.***>
Reply-To: lanl/Draco ***@***.***>
Date: Wednesday, August 18, 2021 at 8:22 AM
To: lanl/Draco ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [EXTERNAL] Re: [lanl/Draco] WIP: Make basic CDI functions constexpr (#1109)
@alexrlongne<https://github.com/alexrlongne> Don't you wish there were some language standards that compiler's would adhere to?
Oh, wait, we have those. 😃
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1109 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE4AAATPD7AQO3JPD55GNZTT5O6ZZANCNFSM5CIAVTHA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
@KineticTheory hahah, right? Stack Overflow that it's actually MSVC that's correct here and that GCC provides a "built-in" constexpr version (indeed cppreference says there's not a constexpr std::pow). |
Whoops, looks like MSVC also doesn't do |
+ Hard code std::pow of max double as there's no constexpr pow in msvc + Add device/config to Cmake for CDI
Codecov Report
@@ Coverage Diff @@
## develop #1109 +/- ##
=======================================
Coverage 88.9% 89.0%
=======================================
Files 376 373 -3
Lines 19569 19573 +4
=======================================
+ Hits 17416 17420 +4
Misses 2153 2153 |
This should be ready for review again. |
Background
frequencyGroupBoundaries
. I've also marked the low-level functionsconstexpr
do that the GPU can call them more easily.Purpose of Pull Request
Description of changes
Status