SWDEV-493913 - Replaced calls to clGetExtensionFunctionAddress in ocltst

Replaced clGetExtensionFunctionAddress calls with
clGetExtensionFunctionAddressForPlatform to ensure
interoperability with distribution ICD loaders.

Change-Id: I560a62459f2ad222750e65e869b98d6b6ec56665
This commit is contained in:
Ioannis Assiouras
2024-11-11 22:05:40 +00:00
parent 24c57cb984
commit 9f1cc590d8
3 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -109,7 +109,6 @@ class App {
m_window(0),
m_platform(platform) {
// initialize OCLWrapper reference
m_wrapper = new OCLWrapper();
// m_workers = Set of worker objects that are used to run a subtest from a
// module
@@ -120,7 +119,8 @@ class App {
* Force caltst to use 1 thread at a time in Windows
* only contextual calls are thread safe currently
*/
m_numDevices = findAdapters(m_platform, m_useCPU, NULL);
m_numDevices = findAdapters(m_platform, m_useCPU, &mpform_id);
m_wrapper = new OCLWrapper(mpform_id);
// m_numDevices = 1;
// Report structure used to store the results of the tests