-
Notifications
You must be signed in to change notification settings - Fork 63
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
Mapper refactoring #676
Mapper refactoring #676
Conversation
* Libraries can now have only one mapper that should be provided at the registration time * If no mapper is given, the default mapper will be used for the library * All mapper id parameters are removed from the APIs
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.
LGTM. A couple minor nits.
src/core/mapping/default_mapper.h
Outdated
TaskTarget task_target(const Task& task, const std::vector<TaskTarget>& options); | ||
std::vector<StoreMapping> store_mappings(const Task& task, | ||
const std::vector<StoreTarget>& options); | ||
virtual Scalar tunable_value(TunableID tunable_id); |
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.
Does this need to be marked virtual?
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.
my initial thought is that there could be some mappers that would only have custom tunables (though that'd need the machine query interface to be protected
), but now I think that'd rather need a custom mapper. let me remove that.
src/core/mapping/default_mapper.h
Outdated
|
||
public: | ||
void set_machine(const MachineQueryInterface* machine); | ||
TaskTarget task_target(const Task& task, const std::vector<TaskTarget>& options); |
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 these be marked 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.
yup, I forgot to put those. Will add them.
See nv-legate/legate#675 and nv-legate/legate#676 Authors: - Mads R. B. Kristensen (https://github.com/madsbk) Approvers: - Lawrence Mitchell (https://github.com/wence-) URL: #202
Per the internal discussion, this PR implements the following changes to the Legate mapper:
This PR builds on #675 and so it currently inherits all of the changes. I will rebase this PR once #675 is merged.