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 authored and Frank Min committed 2025-11-05 18:53:35 +08:00
1 parent 3c3af5c586
commit 255069da95
2 files changed
+7 -1

No files matched your search

Binary file not shown.
+7 -1
View File
@@ -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;