-
Notifications
You must be signed in to change notification settings - Fork 215
tests for cl_khr_spirv_queries #2409
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
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,312 @@ | |||
// |
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.
If the SPIRV-Headers become a hard dependency, maybe we should just generate this file at build time?
Since cl_khr_spirv_queries support is now in the upstream headers, we can use the defines from the headers vs. duplicating them in the tests.
looks good, tested my implementation of Though I think if |
Good catch. I added this, although I don't have a device to test it with, and according to opencl.gpuinfo.org there aren't any devices in the database that support it, either, hrm. As an aside, the tests are currently (informationally) printing any non-required SPIR-V capabilities that are reported. Should I do something similar for SPIR-V extended instruction sets and SPIR-V extensions also? This might help to find other missing checks like this one... or it could just be noise, once usage of the SPIR-V queries becomes more widespread. |
don't have tests here for that either.
I think with this extension in mind it's fine to report more capabilities or extensions than necessary. They can also be part of vendor/ext extensions the tests here isn't aware off, so I'm pretty sure it's gonna cause some noise sooner or later. |
need to add "cl_khr_spirv_queries" inside test_conformance/compiler/test_compiler_defines_for_extensions.cpp otherwise This change could go on its own, but I think it's fine adding it here if this PR gets merged soonish. |
Fixed. I really want to get that test fixed; it's kind of silly how we need to modify it every time a new KHR extension gets published. |
yeah.. this list really should be generated |
See: KhronosGroup/OpenCL-Docs#1385