SWDEV-293816 - Test a CPC counter that's supported by both gfx10 ROCr and PAL backend.

Change-Id: I5d20d07b999c26707611dba5b2c7da9782ad08f3


[ROCm/clr commit: 7cb2b815b3]
Этот коммит содержится в:
jatang
2022-10-25 18:14:07 -04:00
родитель e07fd20922
Коммит dec87c74f0
+9 -9
Просмотреть файл
@@ -49,20 +49,20 @@ static const DeviceCounterInfo DeviceInfo[]{
// GFX10
{"gfx1000",
10,
{{15, 0, 4}, {77, 1, 2}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {MCVML2_l,
// reg 0, BigK bank 0 hits}
{{15, 0, 4}, {74, 0, 13}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
{"gfx1010",
10,
{{15, 0, 4}, {77, 1, 2}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {MCVML2_l,
// reg 0, BigK bank 0 hits}
{{15, 0, 4}, {74, 0, 13}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
{"gfx1011",
10,
{{15, 0, 4}, {77, 1, 2}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {MCVML2_l,
// reg 0, BigK bank 0 hits}
{{15, 0, 4}, {74, 0, 13}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
{"gfx1012",
10,
{{15, 0, 4}, {77, 1, 2}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {MCVML2_l,
// reg 0, BigK bank 0 hits}
{{15, 0, 4}, {74, 0, 13}}}, // {SQ, reg 0, SQ_PERF_SEL_WAVES}, {CPC,
// reg 0, Me1 busy for packet decode}
// GFX9
{"gfx900",
9,
@@ -753,7 +753,7 @@ void OCLPerfCounters::run(void) {
break;
case 1:
if (devId >= 9) {
SNPRINTF(buf, sizeof(buf), "BigK Bank0 hits: %lu ", (long)result);
SNPRINTF(buf, sizeof(buf), "Me1 busy for packet decode: %lu ", (long)result);
} else {
SNPRINTF(buf, sizeof(buf), "GRBM CP Busy: %lu ", (long)result);
}