integrating memory_validation bench in cmake build

Change-Id: I90ad85c7b1517c162804a00d5abb75007bf831fe
This commit is contained in:
Evgeny
2019-07-23 11:14:44 -05:00
parent 1d9b6b4d4f
commit 6c5ca62575
4 changed files with 31 additions and 3 deletions
+6
View File
@@ -88,3 +88,9 @@ set ( TEST_LIB_SRC ${TEST_DIR}/tool/tool.cpp ${UTIL_SRC} )
add_library ( ${TEST_LIB} SHARED ${TEST_LIB_SRC} )
target_include_directories ( ${TEST_LIB} PRIVATE ${TEST_DIR} ${ROOT_DIR} ${HSA_RUNTIME_INC_PATH} )
target_link_libraries ( ${TEST_LIB} ${ROCPROFILER_TARGET} ${HSA_RUNTIME_LIB} c stdc++ dl pthread rt )
## Build memory test bench
add_custom_target( mbench
COMMAND sh -xc "cp -r ${TEST_DIR}/memory_validation ${PROJECT_BINARY_DIR}/test/."
COMMAND make -C "${PROJECT_BINARY_DIR}/test/memory_validation"
)
+3 -2
View File
@@ -1,4 +1,5 @@
#!/bin/bash
BDIR=`dirname $0`
###############################################################################
# Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved.
@@ -24,7 +25,7 @@
# test TCP/TCC miss
# to test separately, append TCP or TCC as argument
run_scripts/test_cache_miss.sh
$BDIR/run_scripts/test_cache_miss.sh
# test data fetch/write size to memory
run_scripts/test_fetchwrite_size.sh
$BDIR/run_scripts/test_fetchwrite_size.sh
@@ -107,7 +107,7 @@ function one_run
done
rstdiff=1 # check result (0: pass/no-difference, 1: fail)
totTccReqs=$(( $hitTccReqs + $missTccReqs ))
totTccReqs=$((hitTccReqs + missTccReqs))
#-- use kernel 'cache_test_RO' to validate read miss rate
if [[ $kern == cache_test_RO ]]; then