tests: improve scripts on rocm v2.6, and do more check
'rocminfo' output format on v2.6 is slightly different, and thus cache capacity and cache linesize can be incorrectly obtained. Example: 'L1: 16KB' vs. 'L1: 16(0x10) KB'. This patch fixes the formatting issue, and further does more check on profiled .csv file. Change-Id: I934ee3613a79fa8acc431a394e88a9e09833311b
This commit is contained in:
@@ -80,7 +80,7 @@ function one_run
|
||||
$N $s "${M}K"
|
||||
${ROCP_PATH}rocprof -i ${BASE_DIR}/../pmc_config_files/cache_pmc.txt -o \
|
||||
${BASE_DIR}/../$rst_file $PATH_CACHE_BENCH/cache $s $N $M \
|
||||
>> $log_file
|
||||
>> $log_file 2>&1
|
||||
|
||||
# check the profiling result
|
||||
checkProfRun $rst_file $log_file
|
||||
|
||||
Reference in New Issue
Block a user