Skip to content

publish cl_img_safety_mechanisms extension#1408

Merged
bashbaug merged 2 commits intoKhronosGroup:mainfrom
AhmedAmraniAkdi:cl_img_safety_mechanisms
Jul 25, 2025
Merged

publish cl_img_safety_mechanisms extension#1408
bashbaug merged 2 commits intoKhronosGroup:mainfrom
AhmedAmraniAkdi:cl_img_safety_mechanisms

Conversation

@AhmedAmraniAkdi
Copy link
Copy Markdown
Contributor

No description provided.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried generating extension headers with these XML changes? This is something you'll probably want to do anyhow, and I've found that it's a good way to check that the XML changes have all been made properly.

@AhmedAmraniAkdi
Copy link
Copy Markdown
Contributor Author

AhmedAmraniAkdi commented Jul 11, 2025

I get this when I generate the headers which looks correct:

// cl_img_safety_mechanisms is a preprocessor guard. Do not pass it to API calls.
#define cl_img_safety_mechanisms 1
typedef cl_bitfield cl_context_safety_properties_img;
#define CL_CONTEXT_SAFETY_PROPERTIES_IMG 0x40D9
#define CL_CONTEXT_WORKGROUP_PROTECTION_IMG 0x00000001
#define CL_CONTEXT_ENHANCED_EVENT_EXECUTION_STATUS_IMG 0x00000002
#define CL_DEVICE_WORKGROUP_PROTECTION_SVM_CAPABILITIES_IMG 0x40DA
#define CL_DEVICE_WORKGROUP_PROTECTION_DEVICE_ENQUEUE_CAPABILITIES_IMG 0x40DB
#define CL_DEVICE_SAFETY_MEM_SIZE_IMG 0x40DC
#define CL_ECC_RECOVERED_IMG 0x40DD
#define CL_PAGE_FAULT_IMG -1127
#define CL_SAFETY_FAULT_IMG -1128
#define CL_GENERAL_FAULT_IMG -1129
#define CL_ECC_UNRECOVERED_IMG -1130

@bashbaug bashbaug merged commit 3d598ab into KhronosGroup:main Jul 25, 2025
2 checks passed
EwanC pushed a commit to EwanC/OpenCL-Headers that referenced this pull request Aug 26, 2025
Use script to regenerate the headers based on changes
from OpenCL-Docs that updated cl.xml

* KhronosGroup/OpenCL-Docs#1411
* KhronosGroup/OpenCL-Docs#1435
* KhronosGroup/OpenCL-Docs#1408
bashbaug pushed a commit to KhronosGroup/OpenCL-Headers that referenced this pull request Aug 26, 2025
Use script to regenerate the headers based on changes
from OpenCL-Docs that updated cl.xml

* KhronosGroup/OpenCL-Docs#1411
* KhronosGroup/OpenCL-Docs#1435
* KhronosGroup/OpenCL-Docs#1408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants