wsl/libhsakmt: move local heap and va_Mgr from device to thunk runtime
In multi-GPU, local heap space is shared between all GPUs, not belongs to specific one GPU, so move it from wddm device (which presents a specific GPU) to thunk runtime which has gloable view, can manage local heap for all GPUs. Reviewed-by: Flora Cui <flora.cui@amd.com> Signed-off-by: tiancyin <tianci.yin@amd.com>
Bu işleme şunda yer alıyor:
@@ -373,6 +373,7 @@ HSAKMT_STATUS topology_sysfs_get_system_props(HsaSystemProperties& props) {
|
||||
|
||||
dxg_topology->num_sysfs_nodes = num_adapters + 1;
|
||||
|
||||
dxg_runtime->HeapFini();
|
||||
for (auto device : dxg_topology->wdevices_)
|
||||
delete device;
|
||||
dxg_topology->wdevices_.clear();
|
||||
@@ -383,6 +384,7 @@ HSAKMT_STATUS topology_sysfs_get_system_props(HsaSystemProperties& props) {
|
||||
assert(device && "Create WDDM Device fail");
|
||||
dxg_topology->wdevices_.push_back(device);
|
||||
}
|
||||
dxg_runtime->HeapInit();
|
||||
props.NumNodes = dxg_topology->num_sysfs_nodes;
|
||||
if (dxg_runtime->default_node > num_adapters)
|
||||
dxg_runtime->default_node = num_adapters;
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle