SWDEV-322620 - Virtual Memory Management
Use correct granularity for VM address/size
Change-Id: I001f29eabe9503396bbec623df9d5155b882be4f
[ROCm/clr commit: bf5826ee93]
This commit is contained in:
@@ -154,8 +154,7 @@ hipError_t hipMemGetAllocationGranularity(size_t* granularity, const hipMemAlloc
|
||||
|
||||
const auto& dev_info = g_devices[prop->location.id]->devices()[0]->info();
|
||||
|
||||
// Default to that for now.
|
||||
*granularity = dev_info.memBaseAddrAlign_;
|
||||
*granularity = dev_info.virtualMemAllocGranularity_;
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user