-
Notifications
You must be signed in to change notification settings - Fork 21
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
Use __ldg on Scalar Read-only Data Stores #1795
Conversation
launch perftest |
Hi there, this is jenkins continuous integration... |
launch jenkins |
launch perftest |
launch jenkins |
@@ -23,6 +23,10 @@ | |||
#include "../meta.hpp" | |||
#include "data_store.hpp" | |||
|
|||
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 350 |
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.
see both comments in the other __ldg pr
@@ -32,11 +36,43 @@ namespace gridtools { | |||
return lhs; | |||
} | |||
}; | |||
template <class T> | |||
struct const_ptr_wrapper { |
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.
Should that better live somewhere in the sid module and possibly become the default also for simple_ptr_holder?
Closed in favor of #1802 |
Additionally fixes missing `host_view` etc. in const data stores. Gives speedups when combined with #1795.
Additionally fixes missing `host_view` etc. in const data stores. Gives speedups when combined with #1795.
Uses the
__ldg
instruction on loads from read-only data stores with supported scalar data types. This might improve performance due to more optimal caching and helps NVCC to elide redundant load instructions.