Skip to content

Distinct guards for exported and non exported prototypes.#2

Open
Kerilk wants to merge 37 commits into
bashbaug:generate-extension-headersfrom
Kerilk:generate-extension-headers-guards
Open

Distinct guards for exported and non exported prototypes.#2
Kerilk wants to merge 37 commits into
bashbaug:generate-extension-headersfrom
Kerilk:generate-extension-headers-guards

Conversation

@Kerilk
Copy link
Copy Markdown

@Kerilk Kerilk commented Mar 22, 2023

This implements the suggestion I made here:
KhronosGroup#161 (comment)

This should allow building the loader by defining CL_NO_EXTENSION_PROTOTYPES rather than CL_NO_PROTOTYPES

bashbaug and others added 25 commits March 20, 2023 22:17
passing header tests with generated headers

improve generation for extensions that share type names

remove incorrectly added file

update to latest generated files
The function pointers in cl_layer.h currently use a different
convention in the ICD loader.  Alternatives are to align to the
cl_layer.h convention, to not generate this header, or to figure
out how to selectively generate a different convention in some
cases.
appended EXTENSION_NAME to extension name define
cl_khr_semaphore
cl_khr_external_semaphore (and related extensions)
cl_khr_external_memory (and related extensions)
cl_intel_device_attribute_query
Done by shifting the unsigned long long literal 1ULL.

This is done conditionally for now, only when the shift amount
is greater than 31, because shifting by 31 or less is defined.
cl_intel_program_scope_host_pipe
This is needed for cl_ext_image_requirements_info where the entire
extension is guarded by an ifdef vs. particular blocks of the extension.
cl_khr_command_buffer_mutable_dispatch
cl_ext_image_requirements_info
cl_intel_queue_no_sync_operations
For easier initial review, generate extensions in the same order
as the existing files.  This can be switched to a more regular
order later.
@Kerilk
Copy link
Copy Markdown
Author

Kerilk commented Mar 22, 2023

MacOS test has been flaky the last few days but passed here: https://github.com/Kerilk/OpenCL-Headers/actions/runs/4492498287
Some images seem to be missing gcc-9

@Kerilk Kerilk force-pushed the generate-extension-headers-guards branch from 9ec6ead to a180d6e Compare March 28, 2023 14:59
@Kerilk
Copy link
Copy Markdown
Author

Kerilk commented Mar 28, 2023

@bashbaug bashbaug force-pushed the generate-extension-headers branch from 6c196d2 to 16ace9e Compare March 31, 2023 19:42
@bashbaug bashbaug force-pushed the generate-extension-headers branch from 16ace9e to 95e6f78 Compare April 9, 2023 21:33
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.

2 participants