level-zero
level-zero copied to clipboard
FYI: piglit level0 port
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.