rocr/aie: Use util/os to get system memory (#2520)

This commit is contained in:
Yiannis Papadopoulos
2026-01-08 13:40:22 -05:00
committed by GitHub
orang tua d8a914d8cc
melakukan e8fef02e5a
3 mengubah file dengan 3 tambahan dan 14 penghapusan
@@ -155,12 +155,6 @@ hsa_status_t XdnaDriver::DiscoverDriver(std::unique_ptr<core::Driver>& driver) {
return HSA_STATUS_ERROR;
}
uint64_t XdnaDriver::GetSystemMemoryByteSize() {
const long pagesize = sysconf(_SC_PAGESIZE);
const long page_count = sysconf(_SC_PHYS_PAGES);
return pagesize * page_count;
}
uint64_t XdnaDriver::GetDevHeapByteSize() {
return dev_heap_size;
}