From b620121390f19865f1238ed66dc2bb86f45b8cee Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Mon, 8 Mar 2021 18:07:09 -0500 Subject: [PATCH] SWDEV-240001 - OCLPerfCounters target ID changes We don't care about target ID features in this test, so we can simply strip them away to maintain compatability with the internal test table. Change-Id: I44591a052c02f9e01876a8946f99cfedee371233 --- opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp b/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp index dd434701b5..89cc8ed988 100644 --- a/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp +++ b/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp @@ -669,6 +669,13 @@ void OCLPerfCounters::run(void) { deviceName, NULL); CHECK_RESULT(err != CL_SUCCESS, "clGetDeviceInfo failed"); + // Remove target ID features + char* targetIdColon = strchr(deviceName, ':'); + if (targetIdColon != nullptr) { + size_t idx = targetIdColon - deviceName; + deviceName[idx] = '\0'; + } + // Begin: to be removed when crash on Kabini is fixed if (strcmp(deviceName, "Kalindi") == 0) { char msg[256];