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

[gemini] refactor gemini mgr #1151

Merged
merged 2 commits into from
Jun 22, 2022
Merged

[gemini] refactor gemini mgr #1151

merged 2 commits into from
Jun 22, 2022

Conversation

ver217
Copy link
Member

@ver217 ver217 commented Jun 21, 2022

  1. Gemini manager breakdown PCIE moving volume into H2D volume and D2H volume.
  2. _get_layout_info() uses LRU cache.


# @functools.lru_cache(maxsize=None)
# TODO: test lru
@functools.lru_cache(maxsize=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this decorator?
I suppose it works for a recursion function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

layout info at each computation step won’t change during steady phase. use LRU to speed up this function

@ver217 ver217 merged commit 54aabb8 into hpcaitech:main Jun 22, 2022
@ver217 ver217 deleted the refactor/zero branch June 22, 2022 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants