mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] Change the name of the default device provided by the new registration framework (#2186)
The code base uses a mix of 'device' and 'deviceID'. I suggest we standardise on 'device' which is shorter and slightly more prevalent. Contributes to #2181 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -41,7 +41,7 @@ REGISTER_TEST(op_type_opaque_simple)
|
||||
else
|
||||
{
|
||||
cl_platform_id platform;
|
||||
err = clGetDeviceInfo(deviceID, CL_DEVICE_PLATFORM,
|
||||
err = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
||||
sizeof(cl_platform_id), &platform, NULL);
|
||||
SPIRV_CHECK_ERROR(err,
|
||||
"Failed to get platform info with clGetDeviceInfo");
|
||||
@@ -61,7 +61,7 @@ REGISTER_TEST(op_type_opaque_simple)
|
||||
err, "Failed to create program with clCreateProgramWithILKHR");
|
||||
}
|
||||
|
||||
err = clCompileProgram(prog, 1, &deviceID,
|
||||
err = clCompileProgram(prog, 1, &device,
|
||||
NULL, // options
|
||||
0, // num headers
|
||||
NULL, // input headers
|
||||
|
||||
Reference in New Issue
Block a user