Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions param-verification/list_violation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ bool list_violation(cl_version version, const char * name, T param)
std::vector<cl_device_id> get_devices(cl_context context)
{
// suppose minimum OpenCL 1.1
size_t nd = 0;
cl_uint nd = 0;
tdispatch->clGetContextInfo(
context,
CL_CONTEXT_NUM_DEVICES,
Expand All @@ -477,7 +477,7 @@ std::vector<cl_device_id> get_devices(cl_context context)

std::vector<cl_device_id> get_devices(cl_program program)
{
size_t nd = 0;
cl_uint nd = 0;
tdispatch->clGetProgramInfo(
program,
CL_PROGRAM_NUM_DEVICES,
Expand Down Expand Up @@ -505,7 +505,7 @@ std::vector<cl_device_id> get_devices(cl_kernel kernel)
sizeof(pr),
&pr,
NULL);
size_t nd;
cl_uint nd;
tdispatch->clGetProgramInfo(
pr,
CL_PROGRAM_NUM_DEVICES,
Expand Down
Loading