-
Notifications
You must be signed in to change notification settings - Fork 50
Add more variants for Massvec3D #589
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
base: develop
Are you sure you want to change the base?
Conversation
src/apps/MASSVEC3DPA-Hip.cpp
Outdated
| startTimer(); | ||
| for (RepIndex_type irep = 0; irep < run_reps; irep = irep + 1) { | ||
|
|
||
| RAJA::launch<launch_policy>( |
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.
TODO: move the RAJA code into a function that is templated on policies to avoid duplicated code...
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.
How much of the body could be a macro?
src/apps/MASSVEC3DPA-Hip.cpp
Outdated
|
|
||
| const int bdx = blockDim.x; //block size is the same for xyz... | ||
| //const int bdy = blockDim.y; | ||
| //const int bdz = blockDim.z; |
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.
Is it worth adding the different dimensions to match the RAJA variant?
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.
Matching is nice.
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.
What about the argument runtime_block_size above though? Should that be removed?
| } | ||
|
|
||
| template<typename inner_x, typename inner_y, typename inner_z, typename RESOURCE> | ||
| void MASSVEC3DPA::runRAJAImpl(RESOURCE &res) |
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.
True to the RAJA mantra, "Change the policy not src code!"
|
TODO: remove Bt as it is not used. |
DRAFT-PR. -- This MR adds the option to store threadblock info in the launch ctx avoiding calling blockDim.x,y,z during the loop methods in raja launch