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 bridging for clang _Float16 type. #7201

Merged
merged 6 commits into from
Dec 6, 2022
Merged

Add bridging for clang _Float16 type. #7201

merged 6 commits into from
Dec 6, 2022

Conversation

zvookin
Copy link
Member

@zvookin zvookin commented Dec 5, 2022

No description provided.

Z Stern added 4 commits December 5, 2022 19:22
supports the latter. Testing is done using clang specific logic and may
need to be extended for other compilers.

I chose not to add support for __fp16 and __bf16 right now as __fp16 is
less useful in being storage only and __bf16 also only supports a subset
of operations and was running into undefined symbols during compilation
that did not look promising.
@steven-johnson
Copy link
Contributor

LGTM but please fix the formatting and tidy errors.

@zvookin zvookin merged commit 59f5412 into main Dec 6, 2022
@zvookin zvookin deleted the clang_float16_types branch December 6, 2022 22:57
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
Add type bridging between Halide::float16_t and _Float16 if the compiler
supports the latter. Testing is done using clang specific logic and may
need to be extended for other compilers.

I chose not to add support for __fp16 and __bf16 right now as __fp16 is
less useful in being storage only and __bf16 also only supports a subset
of operations and was running into undefined symbols during compilation
that did not look promising.

Co-authored-by: Steven Johnson <[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.

2 participants