Skip to content
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

Unnecessary resource iteration on assignment_policy() #145

Open
nicelhc13 opened this issue Jan 26, 2023 · 0 comments
Open

Unnecessary resource iteration on assignment_policy() #145

nicelhc13 opened this issue Jan 26, 2023 · 0 comments
Assignees
Labels
performance Runtime performance of Parla or Parla programs

Comments

@nicelhc13
Copy link
Contributor

assignment_policy() updates the value of the 'memory' key of a task to calculate locality scores.

resource_requirements['memory'] += nonlocal_data

However, if a task does not use any PArray, it doubles unnecessary iteration space of check_resources_availability().

In 1000 independent 0.5s tasks, this iteration increases execution time from 43s to 53s.

The resource requirement dictionary update should be avoided if a task does not use any PArray.

@nicelhc13 nicelhc13 added the performance Runtime performance of Parla or Parla programs label Jan 26, 2023
@nicelhc13 nicelhc13 self-assigned this Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Runtime performance of Parla or Parla programs
Projects
None yet
Development

No branches or pull requests

1 participant