Skip to content

Commit

Permalink
size_t -> cl_uint
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank daga committed Jul 10, 2017
1 parent f4e9bbc commit 4bf6105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ocl/handleocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ Handle::Handle() : impl(new HandleImpl())

impl->context = impl->create_context();
/* First, get the size of device list data */
size_t deviceListSize;
cl_uint deviceListSize;
if(clGetContextInfo(
impl->context.get(), CL_CONTEXT_NUM_DEVICES, sizeof(size_t), &deviceListSize, nullptr) !=
impl->context.get(), CL_CONTEXT_NUM_DEVICES, sizeof(cl_uint), &deviceListSize, nullptr) !=
CL_SUCCESS)
{
MIOPEN_THROW("Error: Getting Handle Info (device list size, clGetContextInfo)");
Expand Down

0 comments on commit 4bf6105

Please sign in to comment.