Skip to content

Commit e62820e

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/acl_device.cpp

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

645+
case CL_DEVICE_ATOMIC_FENCE_CAPABILITIES: {
646+
cl_bitfield res = 0;
647+
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM;
648+
res = res | CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP;
649+
res = res | CL_DEVICE_ATOMIC_SCOPE_DEVICE;
650+
RESULT_BITFIELD(res);
651+
} break;
652+
645653
default:
646654
break;
647655
}

0 commit comments

Comments
 (0)