Skip to content

Commit 59ac4dc

Browse files
authored
Add definitions for cl_arm_protected_memory_allocation (#187)
* Add definitions for cl_arm_protected_memory_allocation Specification: KhronosGroup/OpenCL-Docs#727 Signed-off-by: Kevin Petit <kevin.petit@arm.com> * fix UB
1 parent e3cd573 commit 59ac4dc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CL/cl_ext.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,14 @@ typedef cl_uint cl_command_termination_reason_arm;
16781678
#define CL_COMMAND_TERMINATION_CONTROLLED_FAILURE_ARM 2
16791679
#define CL_COMMAND_TERMINATION_ERROR_ARM 3
16801680

1681+
/*************************************
1682+
* cl_arm_protected_memory_allocation *
1683+
*************************************/
1684+
1685+
#define cl_arm_protected_memory_allocation 1
1686+
1687+
#define CL_MEM_PROTECTED_ALLOC_ARM (1ULL << 36)
1688+
16811689
/******************************************
16821690
* cl_intel_exec_by_local_thread extension *
16831691
******************************************/

0 commit comments

Comments
 (0)