Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a few helpful scripts for generating asciidoctor attributes #1174

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bashbaug
Copy link
Contributor

gen_extension_attribs.py accepts a text file of enums, APIs, and types added by an extension and generates asciidoctor attributes for them. This is useful when authoring EXT or vendor-specific extensions.

gen_feature_dict.py accepts a text file of OpenCL C features and generates asciidoctor attributes for them.

I'll leave this as a draft for a bit while we figure out what to do with it.

gen_extension_attribs.py accepts a text file of enums, APIs, and
types added by an extension and generates asciidoctor attributes
for them.  This is useful when authoring EXT or vendor-specific
extensions.

gen_feature_dict.py accepts a text file of OpenCL C features and
generates asciidoctor attributes for them.
@bashbaug bashbaug marked this pull request as draft May 21, 2024 04:58
kpet added a commit to kpet/OpenCL-Docs that referenced this pull request Jul 17, 2024
Features are stored in a text file for now. Ultimately, we probably
want to use the XML registry for this.

Generation script taken from KhronosGroup#1174 with a few modifications.

Contributes to KhronosGroup#1166.

Signed-off-by: Ben Ashbaugh <[email protected]>
Signed-off-by: Kevin Petit <[email protected]>
Change-Id: Ie2c14148d75457030aa1a97cf601daba2c007397
bashbaug added a commit that referenced this pull request Aug 13, 2024
* Generate OpenCL C feature dictionary

Features are stored in a text file for now. Ultimately, we probably
want to use the XML registry for this.

Generation script taken from #1174 with a few modifications.

Contributes to #1166.

Signed-off-by: Ben Ashbaugh <[email protected]>
Signed-off-by: Kevin Petit <[email protected]>
Change-Id: Ie2c14148d75457030aa1a97cf601daba2c007397

* Update scripts/gen_c_feature_dictionary.py

Co-authored-by: Ben Ashbaugh <[email protected]>

* define __opencl_c_<feature_name> outside of the list of features

Signed-off-by: Kevin Petit <[email protected]>
Change-Id: I8e0947c30775338dd70803d09c7059d340e86f5a

---------

Signed-off-by: Ben Ashbaugh <[email protected]>
Signed-off-by: Kevin Petit <[email protected]>
Co-authored-by: Ben Ashbaugh <[email protected]>
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.

1 participant