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
[ROCm/ROCR-Runtime commit: 3447b795df]
This commit is contained in:
@@ -242,13 +242,6 @@ FILTER[aldebaran]=\
|
||||
"KFDMemoryTest.PtraceAccess:"\
|
||||
"KFDMemoryTest.DeviceHdpFlush"
|
||||
|
||||
FILTER[aqua_vanjaram]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"KFDMemoryTest.LargestSysBufferTest:"\
|
||||
"KFDMemoryTest.BigSysBufferStressTest:"\
|
||||
"KFDMemoryTest.FlatScratchAccess:"\
|
||||
"KFDIPCTest.BasicTest"
|
||||
|
||||
FILTER[navi10]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"$BLACKLIST_GFX10:"\
|
||||
@@ -310,3 +303,24 @@ FILTER[gfx1103]=\
|
||||
FILTER[gfx1036]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"$BLACKLIST_GFX10_NV2X"
|
||||
|
||||
FILTER[gfx940]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"KFDMemoryTest.LargestSysBufferTest:"\
|
||||
"KFDMemoryTest.BigSysBufferStressTest:"\
|
||||
"KFDMemoryTest.FlatScratchAccess:"\
|
||||
"KFDIPCTest.BasicTest"
|
||||
|
||||
FILTER[gfx941]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"KFDMemoryTest.LargestSysBufferTest:"\
|
||||
"KFDMemoryTest.BigSysBufferStressTest:"\
|
||||
"KFDMemoryTest.FlatScratchAccess:"\
|
||||
"KFDIPCTest.BasicTest"
|
||||
|
||||
FILTER[gfx942]=\
|
||||
"$BLACKLIST_ALL_ASICS:"\
|
||||
"KFDMemoryTest.LargestSysBufferTest:"\
|
||||
"KFDMemoryTest.BigSysBufferStressTest:"\
|
||||
"KFDMemoryTest.FlatScratchAccess:"\
|
||||
"KFDIPCTest.BasicTest"
|
||||
@@ -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