-
Notifications
You must be signed in to change notification settings - Fork 21
Thread execution spaces through vector API #630
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
Merged
Merged
Changes from 26 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
6ba7a14
update ports
jonahm-LANL dc72ae5
thread spaces through API calls in base class
jonahm-LANL c4fa646
fill eos in variant class
jonahm-LANL af19c21
and threaded through the variant
jonahm-LANL 215732b
Do it with SieFromDensityPressure
jonahm-LANL 959f616
Merge branch 'jmm/python-warnings' into jmm/thread-spaces
jonahm-LANL 7c45226
Merge branch 'jmm/python-warnings' into jmm/thread-spaces
jonahm-LANL afa924f
working commit
jonahm-LANL c78ab37
Thread it through the rest
jonahm-LANL a3d270e
Merge branch 'main' into jmm/thread-spaces
jonahm-LANL e65fd46
host space in python module
jonahm-LANL 971fd73
leverage macros for overloads
jonahm-LANL b78d0b4
macro needs scratch
jonahm-LANL b2d4286
lets try with explicit overloads
jonahm-LANL bd4008f
documentation
jonahm-LANL fbcb830
test
jonahm-LANL d2422a6
Add tests
jonahm-LANL 3dd1963
the sfinae needed a check of non-indexable index for Space and yes-in…
jonahm-LANL b81da8c
unused variable
jonahm-LANL e414821
name template SFINAEs
jonahm-LANL cb56624
name the SFINAE types
jonahm-LANL 400a3a3
formatting
jonahm-LANL 77b22bb
add overloads for space to the modifiers
jonahm-LANL c41b8ee
changelog
jonahm-LANL 3db0a99
clean up doc
jonahm-LANL a5dec5e
formatting
jonahm-LANL 668b871
add modifier wrapper macros
jonahm-LANL 1e33c88
dramatically reduce boiler plate in modifiers with overloads with mor…
jonahm-LANL 4e9d77d
macros comment
jonahm-LANL 20dae89
formatting
jonahm-LANL 76b9fe8
fix hard compare
jonahm-LANL 9f9c1a8
CC
jonahm-LANL cb9a328
oops now CC
jonahm-LANL 35c4a75
formatting
jonahm-LANL 93bed3d
plan history for macros for modifier overloads
jonahm-LANL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -302,8 +302,8 @@ class VariadicIndexerBase { | |
| PORTABLE_FORCEINLINE_FUNCTION | ||
| VariadicIndexerBase(const Data_t &data) : data_(data) {} | ||
|
|
||
| template <typename T, | ||
| typename = std::enable_if_t<variadic_utils::contains<T, Ts...>::value>> | ||
| template <typename T, typename EnableIfContained = | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Naming the SFINAE/concept type produced more useful error messages from the cuda compiler. |
||
| std::enable_if_t<variadic_utils::contains<T, Ts...>::value>> | ||
| PORTABLE_FORCEINLINE_FUNCTION Real &operator[](const T &t) { | ||
| constexpr std::size_t idx = variadic_utils::GetIndexInTL<T, Ts...>(); | ||
| return data_[idx]; | ||
|
|
@@ -312,8 +312,8 @@ class VariadicIndexerBase { | |
| PORTABLE_FORCEINLINE_FUNCTION | ||
| Real &operator[](const std::size_t idx) { return data_[idx]; } | ||
|
|
||
| template <typename T, | ||
| typename = std::enable_if_t<variadic_utils::contains<T, Ts...>::value>> | ||
| template <typename T, typename EnableIfContained = | ||
| std::enable_if_t<variadic_utils::contains<T, Ts...>::value>> | ||
| PORTABLE_FORCEINLINE_FUNCTION const Real &operator[](const T &t) const { | ||
| constexpr std::size_t idx = variadic_utils::GetIndexInTL<T, Ts...>(); | ||
| return data_[idx]; | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eliminates an unused variable warning