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
This commit is contained in:
zatwierdzone przez
Jacob Lambert
rodzic
d1b833e509
commit
3c5b304992
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user