HIP: add cmake option to enable compiler output of kernel resource usage metrics (#15103)

This commit is contained in:
uvos authored and GitHub committed 2025-08-07 16:44:14 +02:00
1 parent 9a96389544
commit 7ad67ba9fe
2 files changed
+5

No files matched your search

+4
View File
@@ -121,6 +121,10 @@ if (GGML_HIP_FORCE_ROCWMMA_FATTN_GFX12 OR ${hip_VERSION} VERSION_GREATER_EQUAL 7
add_compile_definitions(GGML_HIP_ROCWMMA_FATTN_GFX12)
endif()
if (GGML_HIP_EXPORT_METRICS)
set(CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS} -Rpass-analysis=kernel-resource-usage --save-temps")
endif()
if (NOT GGML_CUDA_FA)
add_compile_definitions(GGML_CUDA_NO_FA)
endif()