wsl/hsakmt: Add is_dgpu check for wddm device

Reviewed-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Longlong Yao <Longlong.Yao@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/18>
This commit is contained in:
Longlong Yao
2024-12-12 02:59:35 -08:00
zatwierdzone przez Frank Min
rodzic 3c3af5c586
commit 255069da95
2 zmienionych plików z 7 dodań i 1 usunięć
+7 -1
Wyświetl plik
@@ -565,7 +565,13 @@ static HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
props.NumSdmaQueuesPerEngine = 6; // TODO
props.NumCpQueues = device->GetNumCpQueues();
props.NumGws = 0;
props.Integrated = !(device->IsDgpu());
/*
* In Native Linux, if the asic is APU, this value will be set to 1,
* if the asic is dGPU, this value will be set to 0. clr use this info
* to set hostUnifiedMemory_, but for now wsl does not support this feature.
* Therefore, fore vaule to 0 temporarily.
*/
props.Integrated = 0;
props.Domain = device->Domain();
props.UniqueID = atol(device->Uuid()); // TODO
props.NumXcc = 1;