rocr/aie: Use util/os to get system memory (#2520)
This commit is contained in:
committed by
GitHub
orang tua
d8a914d8cc
melakukan
e8fef02e5a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user