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

Try to apply Profile-Guided Optimization (PGO) to SPIRV tooling #5303

Open
zamazan4ik opened this issue Jul 2, 2023 · 1 comment
Open

Try to apply Profile-Guided Optimization (PGO) to SPIRV tooling #5303

zamazan4ik opened this issue Jul 2, 2023 · 1 comment

Comments

@zamazan4ik
Copy link

Hi!

I think SPIRV tools can get performance improvement by using Profile-Guided Optimization (PGO). I think so because, from my experience, compiler-like things get up to a 20% boost with it (according to Clang and Rustc tests).

Did anyone try to do such optimization on the project? Not sure, if is it possible or not to use tests as a profile since a good profile should work on a "hot" path in general cases.

@s-perron
Copy link
Collaborator

We have not tried it. I agree that it would probably give a good improvement, but the tests would not be good training data. To build usefully with PGO we would need a good set of shaders from a variety of source that have the correct licence.

This is not something that the maintainers are interested in perusing at this time. We could accept a PR from someone else, but we would have to look it over carefully.

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

No branches or pull requests

2 participants