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

Build time reduction #544

Open
kpet opened this issue Jun 4, 2023 · 1 comment
Open

Build time reduction #544

kpet opened this issue Jun 4, 2023 · 1 comment

Comments

@kpet
Copy link
Owner

kpet commented Jun 4, 2023

          I don't know how much time you can get, but here is what [ChromeOS](https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/main/media-libs/clvk/clvk-0.0.1.ebuild) is using to reduce the build time of clvk:
-DLLVM_INCLUDE_BENCHMARKS=OFF
-DLLVM_INCLUDE_EXAMPLES=OFF
-DLLVM_INCLUDE_TESTS=OFF
-DLLVM_ENABLE_BINDINGS=OFF
-DLLVM_ENABLE_UNWIND_TABLES=OFF
-DLLVM_BUILD_TOOLS=OFF
-DCLSPV_BUILD_SPIRV_DIS=OFF
-DCLSPV_BUILD_TESTS=OFF
-DCLVK_BUILD_TESTS=OFF
-DCLVK_BUILD_SPIRV_TOOLS=OFF
-DCLVK_ENABLE_SPIRV_IL=OFF

 Maybe we should regroup all that under one variable inside our cmake. It would make it easier to maintain

Originally posted by @rjodinchr in #543 (comment)

@kpet
Copy link
Owner Author

kpet commented Jun 4, 2023

Reposting my initial reply here (was hoping Github would copy the whole conversation):

Some of these could probably be set by default. We could introduce a flag to select "dev" vs. "release" builds (that would have to be different from CMAKE_BUILD_TYPE I think) to enable/disable testing and tools maybe. AFAICT, the biggest savings will come from disabling SPIRV-Tools and the SPIRV-LLVM-Translator. Let's take the discussion to a dedicated issue to not pollute that PR.

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

No branches or pull requests

1 participant