Skip to content

Reset accelerator when INC_TARGET_DEVICE is set in code #2168

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

Merged
merged 5 commits into from
Apr 17, 2025

Conversation

Kaihui-intel
Copy link
Contributor

@Kaihui-intel Kaihui-intel commented Apr 10, 2025

Type of Change

feature

Description

When we set the environment variable INC_TARGET_DEVICE in the code, this setting does not take effect and the previously cached accelerator from lru_cache is used instead.

Expected Behavior & Potential Risk

the expected behavior that triggered by this PR

How has this PR been tested?

how to reproduce the test (including hardware information)

Dependency Change?

any library dependency introduced or removed

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@yiliu30 yiliu30 requested a review from Copilot April 10, 2025 09:08
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@Kaihui-intel Kaihui-intel requested a review from XuehaoSun April 15, 2025 05:04
@Kaihui-intel Kaihui-intel merged commit 68becc4 into master Apr 17, 2025
23 checks passed
@Kaihui-intel Kaihui-intel deleted the kaihui/reset_accelerator branch April 17, 2025 05:03
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