From 3c5b3049922ddba80bbd51efa61d88efd5566d63 Mon Sep 17 00:00:00 2001 From: Jacob Lambert Date: Tue, 14 May 2024 12:02:54 -0700 Subject: [PATCH] SWDEV-459586 - Clarify warning for amdgpu-arch failure We more clearly define what happens in the case of amdgpu-arch failure, and instruct developers on how to workaround the failure Change-Id: Ifff569a7d688b6545ca457116e534a1830fa03c0 --- hipamd/hip-config-amd.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hipamd/hip-config-amd.cmake b/hipamd/hip-config-amd.cmake index 6a00f8f43e..352024aeda 100755 --- a/hipamd/hip-config-amd.cmake +++ b/hipamd/hip-config-amd.cmake @@ -83,8 +83,14 @@ if(NOT AMDGPU_TARGETS) ERROR_STRIP_TRAILING_WHITESPACE) if(AMDGPU_ARCH_ERROR) - message(AUTHOR_WARNING "amdgpu-arch failed with error ${AMDGPU_ARCH_ERROR}") - message("and the output is ${AMDGPU_ARCH_OUTPUT}") + message(AUTHOR_WARNING + " AMDGPU_TARGETS was not set, and system GPU detection was unsuccsesful.\n \n" + " The amdgpu-arch tool failed:\n" + " Error: '${AMDGPU_ARCH_ERROR}'\n" + " Output: '${AMDGPU_ARCH_OUTPUT}'\n \n" + + " As a result, --offload-arch will not be set for subsuqent\n" + " compilations, and the default architecture (gfx906) will be used\n") else() if (NOT AMDGPU_ARCH_OUTPUT STREQUAL "") string(REPLACE "\n" ";" AMDGPU_ARCH_OUTPUT ${AMDGPU_ARCH_OUTPUT})