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

FYI: piglit level0 port #27

Open
airlied opened this issue Jun 17, 2020 · 0 comments
Open

FYI: piglit level0 port #27

airlied opened this issue Jun 17, 2020 · 0 comments

Comments

@airlied
Copy link

@airlied airlied commented Jun 17, 2020

This isn't really an issue, it's more of an FYI to level0 developers.

In the piglit open source testing project we have a bunch of CL program tests. These tests are individual files describing a test run by an test execution binary. The tests cover a bunch of CL builtins and other things. I recently added CL SPIR-V support to the testing binary, which uses clang + llvm-spirv to generate spir-v from the CL C tests.

Following on from that I've gotten basic level0 execution working from the same files.

https://gitlab.freedesktop.org/airlied/piglit/-/tree/lvl0

I've only tested this against my own level0 implementation not the intel one and I'm not even 100% confident it's working at all, but some tests to appear to pass.

This tool might be useful for writing quick tests also that just use CL C to exercise some corner cases. It doesn't have image or half support yet, and a few other things are likely broken, but I thought I'd mention it in case it was useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.