-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add resource argument to PluginStrategy methods #1775
base: develop
Are you sure you want to change the base?
Conversation
// todo(bowen) do we want default resource here? | ||
util::callPreCapturePlugins(context, resource_type::get_default()); |
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.
Let's think about this
@@ -229,24 +229,24 @@ void launch(LaunchParams const &launch_params, const char *kernel_name, ReducePa | |||
auto&& launch_body = expt::get_lambda(std::forward<ReduceParams>(rest_of_launch_args)...); | |||
|
|||
//Take the first policy as we assume the second policy is not user defined. | |||
//We rely on the user to pair launch and loop policies correctly. | |||
//We rely on the user to pair launch and loop policies core_protly. |
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.
spell correctly?
@@ -14,8 +14,8 @@ class CounterPlugin : | |||
public RAJA::util::PluginStrategy | |||
{ | |||
public: | |||
void preCapture(const RAJA::util::PluginContext& p) override { | |||
if (p.platform == RAJA::Platform::host) | |||
void preCapture(const RAJA::util::PluginContext& p, const RAJA::resources::Resource&) override { |
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.
Let's double check that we don't need a non-const resource reference.
Thanks for working on this, on my side I need a small modification on the PluginContext as its where I am storing the kernel name for the caliper integration. See here: #1773. |
Summary
Design review (for API changes or additions---delete if unneeded)
On (date), we reviewed this PR. We discussed the design ideas:
This PR implements 1. and 3. It leaves out 2. for the following reasons