gentoo-ebuilds/sci-libs/composable-kernel/files/composable-kernel-7.0.1-conditional-ckprofiler.patch
Sv. Lockal 9355a33a68
sci-libs/composable-kernel: add 7.0.2
Bug: https://bugs.gentoo.org/964799

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44165
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-21 19:47:31 +01:00

12 lines
445 B
Diff

Add a flag to build without ckprofiler, which takes few GB of space and not used in many cases.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -645,7 +645,7 @@ if(NOT GPU_ARCHS AND USER_GPU_TARGETS AND NOT MIOPEN_REQ_LIBS_ONLY)
endif()
endif()
-if (NOT MIOPEN_REQ_LIBS_ONLY)
+if (NOT MIOPEN_REQ_LIBS_ONLY OR CK_USE_PROFILER)
rocm_package_setup_component(profiler
LIBRARY_NAME composablekernel
PACKAGE_NAME ckprofiler