ef755e4c82
Code object V2 had the ability to support the following queries: - HSA_CODE_SYMBOL_INFO_KERNEL_KERNARG_SEGMENT_SIZE - HSA_EXECUTABLE_SYMBOL_INFO_KERNEL_KERNARG_SEGMENT_SIZE - HSA_CODE_SYMBOL_INFO_KERNEL_KERNARG_SEGMENT_ALIGNMENT - HSA_EXECUTABLE_SYMBOL_INFO_KERNEL_KERNARG_SEGMENT_ALIGNMENT However code object V3 onwards cannot support these as the kernel descriptor changed. These queries need to be deprecated. Until then return more reasonable values: - For kernarg alignment return 16 which is the minimum alignment required by the HSA standard. - For kernarg size return the field from the kernel descriptor which is a hint. If it is 0 then the compiler is not specifying the kernarg size, or the kernel has no kernarg. Change-Id: I19ce6cd0f3658a2bf62277492f39100ea5ab4256