Skip to content

Commit 3e89e36

Browse files
committed
cleaning up unwanted code as suggested in review
1 parent 4f27f7a commit 3e89e36

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cmake/onnxruntime_unittests.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,11 @@ endif()
15301530

15311531
if (CMAKE_SYSTEM_NAME MATCHES "AIX")
15321532
target_link_libraries(onnxruntime_runtime_path_test_shared_library PRIVATE
1533-
onnxruntime_common ${CMAKE_DL_LIBS})
1533+
onnxruntime_common ${CMAKE_DL_LIBS})
15341534
set_target_properties(onnxruntime_runtime_path_test_shared_library PROPERTIES AIX_SHARED_LIBRARY_ARCHIVE OFF)
15351535
else()
15361536
target_link_libraries(onnxruntime_runtime_path_test_shared_library PRIVATE
1537-
onnxruntime_common cpuinfo ${CMAKE_DL_LIBS})
1537+
onnxruntime_common cpuinfo ${CMAKE_DL_LIBS})
15381538
endif()
15391539
target_include_directories(onnxruntime_runtime_path_test_shared_library PRIVATE ${ONNXRUNTIME_ROOT})
15401540

onnxruntime/core/common/cpuid_info_vendor.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ struct CpuVendorInfo {
190190
};
191191

192192
constexpr auto kUnknownCpuVendorInfo = CpuVendorInfo{cpuinfo_vendor_unknown, "unknown", 0x0000};
193-
#if defined(_AIX)
194-
constexpr auto kIBMCpuVendorInfo = CpuVendorInfo{cpuinfo_vendor_ibm, "IBM", 0x1014};
195-
#endif
196193

197194
constexpr std::array kCpuVendorInfos{
198195
CpuVendorInfo{cpuinfo_vendor_amd, "AMD", 0x1022},
@@ -232,7 +229,7 @@ void CPUIDInfo::VendorInfoInit() {
232229
}
233230
#endif // defined(CPUINFO_SUPPORTED)
234231
#if defined(_AIX)
235-
result = kIBMCpuVendorInfo.vendor;
232+
result = cpuinfo_vendor_ibm;
236233
#endif
237234
return result;
238235
}();

0 commit comments

Comments
 (0)