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

[HPU] Add lazy mode back #371

Merged
merged 4 commits into from
Dec 5, 2024
Merged

[HPU] Add lazy mode back #371

merged 4 commits into from
Dec 5, 2024

Conversation

yiliu30
Copy link
Contributor

@yiliu30 yiliu30 commented Dec 5, 2024

Background: previous PRs forced the use of compile mode for HPU, but lazy mode can still work, albeit slowly, and some INC UTs rely on lazy mode.

This PR:

  • check environment variables for compile mode if needed
# lazy mode
PT_HPU_LAZY_MODE=1 python xxx

# compile mode
PT_HPU_LAZY_MODE=0 PT_ENABLE_INT64_SUPPORT=0 python xxx
  • Add UTs for both lazy mode and compile mode

yiliu30 and others added 4 commits December 5, 2024 01:09
Signed-off-by: yiliu30 <[email protected]>
Signed-off-by: yiliu30 <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
@yiliu30 yiliu30 requested review from WeiweiZhang1 and wenhuach21 and removed request for WeiweiZhang1 December 5, 2024 08:22
@yiliu30 yiliu30 merged commit 7acb784 into main Dec 5, 2024
8 checks passed
@yiliu30 yiliu30 deleted the dev/hpu/re-enable/lazy/mode branch December 5, 2024 10:13
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.

3 participants