kfdtest: Fix gfx_target_version Parsing Issue
The purpose of this patch is to fix an issue in the run_kfdtest.sh script's gfx_target_version parsing. When the character length of the "gfx_target_version" value is equal to 5 instead of 6, it will now be zero padded on the left to allow each Major/Minor/Stepping value to be parsed correctly. Also, kfdtest.exclude file now replaces the default filter for aqua_vanjaram with the following 3 gfx filters: gfx940, gfx941, & gfx942 Signed-off-by: Ori Messinger <Ori.Messinger@amd.com> Change-Id: I1f0264d3705803f24ad3c458e6bd367fbbec62be
This commit is contained in:
@@ -161,6 +161,9 @@ getNodeName() {
|
||||
gpuName="gfx$(echo "$HSA_OVERRIDE_GFX_VERSION" | awk 'BEGIN {FS="."; RS=""} {printf "%d%x%x", $1, $2, $3 }')"
|
||||
else
|
||||
local GfxVersionDec=$(cat $TOPOLOGY_SYSFS_DIR/$nodeId/properties | grep gfx_target_version | awk '{print $2}')
|
||||
if [[ ${#GfxVersionDec} = 5 ]]; then
|
||||
GfxVersionDec="0${GfxVersionDec}"
|
||||
fi
|
||||
gpuName="gfx$(printf "$GfxVersionDec" | fold -w2 | awk 'BEGIN {FS="\n"; RS=""} {printf "%d%x%x", $1, $2, $3}')"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user