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:
@@ -52,13 +52,13 @@ REGISTER_TEST(basic_versions)
|
||||
});
|
||||
|
||||
size_t sz = 0;
|
||||
error = clGetDeviceInfo(deviceID, CL_DEVICE_IL_VERSION, 0, NULL, &sz);
|
||||
error = clGetDeviceInfo(device, CL_DEVICE_IL_VERSION, 0, NULL, &sz);
|
||||
test_error(error, "Unable to query device IL versions size");
|
||||
|
||||
std::string ilVersions;
|
||||
ilVersions.resize(sz);
|
||||
error = clGetDeviceInfo(deviceID, CL_DEVICE_IL_VERSION, sz, &ilVersions[0],
|
||||
NULL);
|
||||
error =
|
||||
clGetDeviceInfo(device, CL_DEVICE_IL_VERSION, sz, &ilVersions[0], NULL);
|
||||
test_error(error, "Unable to query device IL versions string");
|
||||
|
||||
for (auto& testCase : mapILtoSubdir)
|
||||
@@ -88,7 +88,7 @@ REGISTER_TEST(basic_versions)
|
||||
std::string filename = testCase.second + "/basic";
|
||||
|
||||
clProgramWrapper prog;
|
||||
error = get_program_with_il(prog, deviceID, context, filename.c_str());
|
||||
error = get_program_with_il(prog, device, context, filename.c_str());
|
||||
test_error(error, "Unable to build SPIR-V program");
|
||||
|
||||
clKernelWrapper kernel = clCreateKernel(prog, "test_basic", &error);
|
||||
|
||||
Reference in New Issue
Block a user