Skip to content

Commit

Permalink
Don't return multiple bits out of clGetDeviceInfo for CL_DEVICE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jenatali committed Mar 4, 2024
1 parent b9cef14 commit 989a95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ clGetDeviceInfo(cl_device_id device,
{
switch (param_name)
{
case CL_DEVICE_TYPE: return RetValue(pDevice->GetType());
case CL_DEVICE_TYPE: return RetValue(pDevice->GetType() & ~CL_DEVICE_TYPE_DEFAULT);
case CL_DEVICE_VENDOR_ID: return RetValue(pDevice->GetHardwareIds().vendorID);
case CL_DEVICE_MAX_COMPUTE_UNITS: return RetValue((cl_uint)1);
case CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS: return RetValue((cl_uint)3);
Expand Down

0 comments on commit 989a95f

Please sign in to comment.