-
Notifications
You must be signed in to change notification settings - Fork 123
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 targets to run CTS tests with validation layer. #613
Comments
I think we should always enable the validation layer when running conformance, not sure we need to have targets which don't run with validation layer enabled though. This also came up in intel/llvm#9512 (comment) |
maybe we could add a way to enable validation through the API? that would solve this neatly |
In the style of Vulkan? |
that would be a good model if we're expecting a lot more specialized/third party layers down the line, otherwise we could just do something like extend |
I like the idea of programatically enabling validation. It's a clean way to avoid the build system while requiring it being enabled in the CTS and also enables parallel langauge runtimes to choose how and if they want to enable validation rather than us being opinionated about it. |
I agree, this makes sense, but like @aarongreig said, we will need to extend Something like this:
Or maybe through varargs:
? I prefer the first approach with the "builder" pattern since creating bindings to higher-level languages is easier. Any other ideas? |
Slight preference for the builder pattern but why does it require allocating an object with dynamic lifetime? |
Having config be an opaque handle allows us flexibility to extend it in the future without changing existing APIs. We can just add new config-related functions. The easiest way to do that is to make config a heap-allocated object. In this example I chose to use the same nomenclature as we use for other dynamically allocated entities in the API for consistency, but it might imply wrong things. Maybe:
|
CTS now always enables validation as of #681 |
It would be useful if we had build targets that ran the CTS tests with validation enabled, rather than having to remember to set the env variables manually.
The text was updated successfully, but these errors were encountered: