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

Tolerate cpuinfo init failure #10199

Merged
merged 2 commits into from
Jan 12, 2022
Merged

Tolerate cpuinfo init failure #10199

merged 2 commits into from
Jan 12, 2022

Conversation

chenfucn
Copy link
Contributor

@chenfucn chenfucn commented Jan 5, 2022

Description:
Tolerate pytorch cpuinfo library init failure.

Motivation and Context

#10038

yufenglee
yufenglee previously approved these changes Jan 5, 2022
Copy link
Member

@yufenglee yufenglee left a comment

Choose a reason for hiding this comment

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

:shipit:

skottmckay
skottmckay previously approved these changes Jan 5, 2022
@chenfucn chenfucn dismissed stale reviews from skottmckay and yufenglee via c8c1c86 January 11, 2022 21:53
// Unfortunately we can not capture cpuinfo log!!
ORT_THROW("Failed to initialize CPU info.");
}
pytorch_cpuinfo_init_ = cpuinfo_initialize();
Copy link
Member

@yufenglee yufenglee Jan 11, 2022

Choose a reason for hiding this comment

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

It is not used when CPUIDINFO_ARCH_X86 is defined. move this to CPUIDINFO_ARCH_ARM section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hope is that cpuinfo should be used under more platforms , not just arm

@chenfucn chenfucn merged commit fb4dea3 into microsoft:master Jan 12, 2022
@chenfucn chenfucn deleted the cfu_cpuinfo branch January 12, 2022 00:32
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.

None yet

3 participants