Skip to content

Commit 283e1f5

Browse files
committed
Informally support atomic fence capability device query
1 parent e91bddb commit 283e1f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/acl_device.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,16 @@ CL_API_ENTRY cl_int CL_API_CALL clGetDeviceInfoIntelFPGA(
642642
RESULT_BITFIELD(0);
643643
} break;
644644

645+
#ifdef CL_VERSION_3_0
646+
case CL_DEVICE_ATOMIC_FENCE_CAPABILITIES: {
647+
cl_bitfield res = 0;
648+
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM;
649+
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP;
650+
res = res | CL_DEVICE_ATOMIC_SCOPE_DEVICE;
651+
RESULT_BITFIELD(res);
652+
} break;
653+
#endif
654+
645655
default:
646656
break;
647657
}

0 commit comments

Comments
 (0)