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

Fix OpenCL positive and negative INF constants. #8266

Merged
merged 3 commits into from
Jun 20, 2024
Merged

Fix OpenCL positive and negative INF constants. #8266

merged 3 commits into from
Jun 20, 2024

Conversation

alexreinking
Copy link
Member

Constructs the necessary constants from the Halide::float16_t bit masks.

Fixes #8257

@abadams
Copy link
Member

abadams commented Jun 5, 2024

Nice avoidance of new magic numbers.

@alexreinking
Copy link
Member Author

The Vulkan errors here were fixed in #8259

@shoaibkamil
Copy link
Contributor

One thing that just occurred to me-- can you also modify test/correctness/gpu_f16_intrinsics.cpp to also run on OpenCL+CLHalf enabled? That should exercise these constants.

@alexreinking
Copy link
Member Author

One thing that just occurred to me-- can you also modify test/correctness/gpu_f16_intrinsics.cpp to also run on OpenCL+CLHalf enabled? That should exercise these constants.

Done -- let's see how the buildbots like it.

@alexreinking alexreinking merged commit b921710 into main Jun 20, 2024
19 checks passed
@alexreinking alexreinking deleted the fix-8257 branch June 20, 2024 19:12
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.

OpenCL intrinsics for float16 seem to have neg_inf and inf switched
4 participants