-
Notifications
You must be signed in to change notification settings - Fork 199
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
gl: enable cl_khr_fp16 for image write tests #1974
gl: enable cl_khr_fp16 for image write tests #1974
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why these tests should require cl_khr_fp16
. Yes, they have a pointer-to-half, but this pointer is only used as an input to vload_half
, which is part of the core specification and not part of cl_khr_fp16
. Is there some other part of the extension that these tests are using?
I was confused about this as well initially, but the specification for An alternative (better?) fix could be to declare |
My gut feeling is that this would be slightly better, but I honestly don't know what these So, I guess my preference would be to tear out all of this unnecessary Maybe we should do this:
|
FWIW, the latest upstream Clang isn't behaving the way I'd expect it to, especially for |
Nice find, from a quick look through the clang source code this must have been present for a long time. Assuming we want to diagnose this, feel free to raise an issue in https://github.com/llvm/llvm-project/issues and assign it to me. |
Yes upstream clang seems to be compiling this successfully however the spec does seem to require cl_khr_fp16 for functions taking or returning half types as per https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#vector-data-load-and-store-functions. | All functions taking or returning half types are supported only when the cl_khr_fp16 extension macro is supported.| Can we merge this change and tackle any spec modifications separately. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging as discussed the June 18th teleconference. @lakshmih will file issues to investigate further improvements to these tests.
I've opened llvm/llvm-project#96640 to fix the issue of allowing halfn types while the cl_khr_fp16 extension isn't enabled. |
No description provided.