Adjust policy for memory display on APUs (#1967)
* Read the ids_flags when fetching GPU info The ids_flags contains the flags that can help identify if a GPU is a dGPU or an APU. * Show correct memory pool for APUs The kernel policy for APUs will be to choose the bigger pool of memory (GTT or VRAM) for KFD work. Adjust the policy for the monitor and default commands to show the right memory pool when using an APU.
Tá an tiomantas seo le fáil i:
tiomanta ag
GitHub
tuismitheoir
879d010974
tiomantas
73778bf83c
@@ -1137,7 +1137,10 @@ struct_amdsmi_asic_info_t._fields_ = [
|
||||
('PADDING_0', ctypes.c_ubyte * 4),
|
||||
('target_graphics_version', ctypes.c_uint64),
|
||||
('subsystem_id', ctypes.c_uint32),
|
||||
('reserved', ctypes.c_uint32 * 21),
|
||||
('PADDING_1', ctypes.c_ubyte * 4),
|
||||
('flags', ctypes.c_uint64),
|
||||
('reserved', ctypes.c_uint32 * 19),
|
||||
('PADDING_2', ctypes.c_ubyte * 4),
|
||||
]
|
||||
|
||||
amdsmi_asic_info_t = struct_amdsmi_asic_info_t
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir