SWDEV-494876 - OCLtst P2P test fail

A variable is used without assignment.

Change-Id: Ie1dac8daaa06c5d348dbf1cfa0aca65f84b12816


[ROCm/clr commit: d48a4fec24]
This commit is contained in:
Alex Xie
2024-11-11 18:17:18 -05:00
zatwierdzone przez AlexBin Xie
rodzic 7cc3970a3f
commit 72fe362f7d
@@ -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");