From 94946f5616767989ce1fe847108e0fbfdfa56a12 Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Thu, 27 Oct 2022 16:12:52 -0400 Subject: [PATCH] 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: 6f43b210d76d632a827f1c4e0b73e7a1e9749773] --- .../ocltst/module/runtime/OCLPerfCounters.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/projects/clr/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp b/projects/clr/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp index 7fe0f2537f..4a3731cab5 100644 --- a/projects/clr/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp +++ b/projects/clr/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp @@ -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,