gentoo-ebuilds/sci-libs/composable-kernel/files/composable-kernel-6.3.0-no-inline-all.patch
Sv. Lockal 9e31f3a377
sci-libs/composable-kernel: add 6.3.0
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-01-05 21:46:35 +00:00

16 lines
831 B
Diff

Flag -amdgpu-early-inline-all explodes memory consumption, so that build does not fit 64GB of RAM.
LLVM bug: https://github.com/llvm/llvm-project/issues/86332
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -213,11 +213,6 @@ if(NOT WIN32 AND check-coerce AND ${hip_VERSION_FLAT} GREATER 600241132 AND ${hi
message("Adding the amdgpu-coerce-illegal-types=1")
add_compile_options("SHELL: -mllvm -amdgpu-coerce-illegal-types=1")
endif()
-if(NOT WIN32 AND ${hip_VERSION_FLAT} GREATER 600241132)
- message("Adding -amdgpu-early-inline-all=true and -amdgpu-function-calls=false")
- add_compile_options("SHELL: -mllvm -amdgpu-early-inline-all=true")
- add_compile_options("SHELL: -mllvm -amdgpu-function-calls=false")
-endif()
#
# Seperate linking jobs from compiling
# Too many concurrent linking jobs can break the build