From 72fe362f7d88cabbcb68d18222099bc82ab6bf84 Mon Sep 17 00:00:00 2001 From: Alex Xie Date: Mon, 11 Nov 2024 18:17:18 -0500 Subject: [PATCH] SWDEV-494876 - OCLtst P2P test fail A variable is used without assignment. Change-Id: Ie1dac8daaa06c5d348dbf1cfa0aca65f84b12816 [ROCm/clr commit: d48a4fec24875023fc73f26cd6c5a4d0b5349147] --- .../clr/opencl/tests/ocltst/module/runtime/OCLP2PBuffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/opencl/tests/ocltst/module/runtime/OCLP2PBuffer.cpp b/projects/clr/opencl/tests/ocltst/module/runtime/OCLP2PBuffer.cpp index 278ff74d01..9aedd7b6c3 100644 --- a/projects/clr/opencl/tests/ocltst/module/runtime/OCLP2PBuffer.cpp +++ b/projects/clr/opencl/tests/ocltst/module/runtime/OCLP2PBuffer.cpp @@ -58,7 +58,6 @@ void OCLP2PBuffer::open(unsigned int test, char* units, double& conversion, unsigned int deviceId) { #ifdef CL_VERSION_2_0 cl_uint numPlatforms = 0; - cl_platform_id platform = NULL; cl_uint num_devices = 0; OCLTestImp::open(test, units, conversion, deviceId); @@ -108,7 +107,7 @@ void OCLP2PBuffer::open(unsigned int test, char* units, double& conversion, } cl_context_properties props[3] = {CL_CONTEXT_PLATFORM, - (cl_context_properties)platform, 0}; + (cl_context_properties)platform_, 0}; context0_ = _wrapper->clCreateContext(props, 1, &devices_[0], NULL, 0, &error_); CHECK_RESULT((error_ != CL_SUCCESS), "clCreateContext#0 failed");