From c0e9734c35d303aae74e1a784fec66ee953d05bd Mon Sep 17 00:00:00 2001 From: German Date: Fri, 2 Jun 2023 17:09:53 -0400 Subject: [PATCH] SWDEV-403871 - Add MS platform recognition Change-Id: Ie01e876f9322e35f4430352d1e4328f613133ee5 --- opencl/tests/ocltst/env/ocltst.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opencl/tests/ocltst/env/ocltst.cpp b/opencl/tests/ocltst/env/ocltst.cpp index 84d8cdf3cd..895038309a 100644 --- a/opencl/tests/ocltst/env/ocltst.cpp +++ b/opencl/tests/ocltst/env/ocltst.cpp @@ -977,7 +977,7 @@ static void Help(const char* name) { "one test per line\n"); oclTestLog(OCLTEST_LOG_ALWAYS, " -p : specify a platform to run on, 'amd','nvidia' " - "or 'intel'\n"); + ",'intel' or 'ms'\n"); oclTestLog(OCLTEST_LOG_ALWAYS, " -h : this help text\n"); oclTestLog( OCLTEST_LOG_ALWAYS, @@ -1029,6 +1029,8 @@ unsigned int getPlatformID(const char* str) { strOfCLPlatformName = "Intel(R) Corporation"; } else if (strOfCLVendor == "nvidia") { strOfCLPlatformName = "NVIDIA Corporation"; + } else if (strOfCLVendor == "ms") { + strOfCLPlatformName = "Microsoft"; } else { // fall-back on platform index 0 return platform;