Replies: 1 comment
-
|
See #891 how to enable it. In my case performance with LTO is lower. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CMake has LTO support for nvcc: https://gitlab.kitware.com/cmake/cmake/-/commit/96bc59b1ca01be231347404d178445263687dd22
However, the build system of llama.cpp/ik_llama.cpp does not seem to utilize it.
I tried manually compiling ik_llama.cpp with LTO-enabled nvcc, but it failed:
with compilation errors
I can confirm that LTO for GCC/Clang works using
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DGGML_LTO=ON. However, when trying to enable LTO for nvcc (which should be automatic in modern CMake when using GCC as the nvcc backend), the linker fails.Therefore, I cannot confirm whether enabling LTO for nvcc will actually provide better performance.
Beta Was this translation helpful? Give feedback.
All reactions