Skip to content

Commit

Permalink
Informally support atomic fence capability device query
Browse files Browse the repository at this point in the history
  • Loading branch information
sophimao committed Mar 14, 2024
1 parent e91bddb commit 283e1f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/acl_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,16 @@ CL_API_ENTRY cl_int CL_API_CALL clGetDeviceInfoIntelFPGA(
RESULT_BITFIELD(0);
} break;

#ifdef CL_VERSION_3_0
case CL_DEVICE_ATOMIC_FENCE_CAPABILITIES: {
cl_bitfield res = 0;
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM;
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP;
res = res | CL_DEVICE_ATOMIC_SCOPE_DEVICE;
RESULT_BITFIELD(res);
} break;
#endif

default:
break;
}
Expand Down

0 comments on commit 283e1f5

Please sign in to comment.