Skip to content

Unnecessary resource iteration on assignment_policy() #145

@nicelhc13

Description

@nicelhc13

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.

Metadata

Metadata

Assignees

Labels

performanceRuntime performance of Parla or Parla programs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions