SWDEV-363140 - Support performance counter on gfx11

Support performance counter on gfx11 in Windows only
as Rocm doesn't support performance counter on gfx11 in Linux.

Change-Id: I2216f72f4d4db6dd3766343b0c821cb3d35d7852


[ROCm/clr commit: 6f43b210d7]
Этот коммит содержится в:
Tao Sang
2022-10-27 16:12:52 -04:00
коммит произвёл Tao Sang
родитель dec87c74f0
Коммит 94946f5616
+15
Просмотреть файл
@@ -46,6 +46,21 @@ struct DeviceCounterInfo {
};
static const DeviceCounterInfo DeviceInfo[]{
#ifdef _WIN32
// GFX11 supports performance counter on Windows only.
{"gfx1100",
11,
{{139, 0, 4}, {74, 0, 13}}}, // {SQWGP, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
{"gfx1101",
11,
{{139, 0, 4}, {74, 0, 13}}}, // {SQWGP, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
{"gfx1102",
11,
{{139, 0, 4}, {74, 0, 13}}}, // {SQWGP, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
#endif
// GFX10
{"gfx1000",
10,