diff options
author | Kévin Petit <kpet@free.fr> | 2021-12-14 17:05:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 09:05:42 -0800 |
commit | 59ac4dc2f282286d8db83143686cfe37ec658b84 (patch) | |
tree | 8d9a444749253d9141aa31ee86f5e8a30eabe122 | |
parent | e3cd57376dada061bc6d5f9edfce2ea631b81214 (diff) | |
download | OpenCL-Headers-upstream.tar.gz OpenCL-Headers-upstream.tar.bz2 OpenCL-Headers-upstream.zip |
Add definitions for cl_arm_protected_memory_allocation (#187)upstream/v2022.01.04upstream
* 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.h | 8 |
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 * ******************************************/ |