Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions onnxruntime/core/common/cpuid_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ CPUIDInfo::CPUIDInfo() {
#endif // defined(CPUINFO_SUPPORTED)

// Note: This should be run after cpuinfo initialization if cpuinfo is enabled.
// On Wasm/Emscripten, cpuinfo cannot detect the CPU vendor so skip to avoid
// an unhelpful "Unknown CPU vendor" warning.
#if !defined(__wasm__)
VendorInfoInit();
#endif

#ifdef CPUIDINFO_ARCH_X86
X86Init();
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/core/common/cpuid_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class CPUIDInfo {
bool has_arm_sme2_{false};

std::string vendor_;
uint32_t vendor_id_;
uint32_t vendor_id_{0};
};

} // namespace onnxruntime
Loading