summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Petit <kpet@free.fr>2021-12-14 17:05:42 +0000
committerGitHub <noreply@github.com>2021-12-14 09:05:42 -0800
commit59ac4dc2f282286d8db83143686cfe37ec658b84 (patch)
tree8d9a444749253d9141aa31ee86f5e8a30eabe122
parente3cd57376dada061bc6d5f9edfce2ea631b81214 (diff)
downloadOpenCL-Headers-59ac4dc2f282286d8db83143686cfe37ec658b84.tar.gz
Add definitions for cl_arm_protected_memory_allocation (#187)upstream/v2022.01.04
* Add definitions for cl_arm_protected_memory_allocation Specification: https://github.com/KhronosGroup/OpenCL-Docs/pull/727 Signed-off-by: Kevin Petit <kevin.petit@arm.com> * fix UB
-rw-r--r--CL/cl_ext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/CL/cl_ext.h b/CL/cl_ext.h
index 2a68cf1..160e535 100644
--- a/CL/cl_ext.h
+++ b/CL/cl_ext.h
@@ -1678,6 +1678,14 @@ typedef cl_uint cl_command_termination_reason_arm;
#define CL_COMMAND_TERMINATION_CONTROLLED_FAILURE_ARM 2
#define CL_COMMAND_TERMINATION_ERROR_ARM 3
+/*************************************
+* cl_arm_protected_memory_allocation *
+*************************************/
+
+#define cl_arm_protected_memory_allocation 1
+
+#define CL_MEM_PROTECTED_ALLOC_ARM (1ULL << 36)
+
/******************************************
* cl_intel_exec_by_local_thread extension *
******************************************/