SWDEV-322620 - Virtual Memory Management
Use correct granularity for VM address/size
Change-Id: I001f29eabe9503396bbec623df9d5155b882be4f
[ROCm/clr commit: bf5826ee93]
Ta zmiana jest zawarta w:
%! (template.HTML=
Christophe Paquot)złożyło 2022-06-29 15:59:56 -07:00
1 rodzic
0899f2212d
złożenie
67e82629a1
Plik 1 zmieniony
+1
-2
@@ -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
Zablokuj użytkownika