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:
zatwierdzone przez
Frank Min
rodzic
3c3af5c586
commit
255069da95
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user