SWDEV-409155: Fixing tests for att/pmc
Change-Id: I036f45502e6ff18518dcdb954161d09ce3546fe0
[ROCm/rocprofiler commit: b8b870328b]
This commit is contained in:
@@ -5,7 +5,7 @@ add_test(
|
||||
${PROJECT_BINARY_DIR}/rocprofv2 -i
|
||||
${PROJECT_BINARY_DIR}/tests-v2/featuretests/profiler/apps/goldentraces/att_vadd.txt
|
||||
-d /tmp/tests-v2/att/ -o /tmp/tests-v2/att/vadd
|
||||
--plugin att auto --mode csv tests-v2/featuretests/profiler/apps/att_vectoradd.cpp
|
||||
--plugin att auto --mode csv tests-v2/featuretests/profiler/apps/att_vectoradd
|
||||
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
|
||||
|
||||
set_tests_properties(
|
||||
@@ -26,6 +26,6 @@ set_tests_properties(
|
||||
PASS_REGULAR_EXPRESSION
|
||||
"Test Passed"
|
||||
FAIL_REGULAR_EXPRESSION
|
||||
"Test Failed"
|
||||
"AssertionError"
|
||||
SKIP_REGULAR_EXPRESSION
|
||||
"Skipped")
|
||||
|
||||
@@ -57,6 +57,6 @@ set_tests_properties(
|
||||
PASS_REGULAR_EXPRESSION
|
||||
"Test Passed"
|
||||
FAIL_REGULAR_EXPRESSION
|
||||
"Test Failed"
|
||||
"AssertionError"
|
||||
SKIP_REGULAR_EXPRESSION
|
||||
"Skipped")
|
||||
|
||||
@@ -27,6 +27,6 @@ set_tests_properties(
|
||||
PASS_REGULAR_EXPRESSION
|
||||
"Test Passed"
|
||||
FAIL_REGULAR_EXPRESSION
|
||||
"Test Failed"
|
||||
"AssertionError"
|
||||
SKIP_REGULAR_EXPRESSION
|
||||
"Skipped")
|
||||
|
||||
@@ -6,7 +6,7 @@ MAX_WAVE_SIZE = 64
|
||||
MAXIMUM_ATT_HITS = 256*128//MAX_WAVE_SIZE//MAX_CU
|
||||
|
||||
kernel_name = "vectoradd_att"
|
||||
csv_filename = "att_output_" + kernel_name + "_v0.csv"
|
||||
csv_filename = "vadd_" + kernel_name + "_v0.csv"
|
||||
output_folder = "/tmp/tests-v2/att"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ def test_hitcount(csv):
|
||||
|
||||
|
||||
def test_addr(csv):
|
||||
addrs = np.array([int(addr, 16) for addr in csv['Addr'] if len(addr) != 0 and addr[0] != '-'])
|
||||
addrs = np.array([int(addr, 16) for addr in csv['Addr'] if addr != '0x0'])
|
||||
print('addrs', addrs)
|
||||
assert(addrs.max() - addrs.min() > 32) # 32 bytes is a safe minimum value
|
||||
assert(addrs.max() - addrs.min() < 2**24) # Kernels are not anywhere near that large
|
||||
@@ -69,4 +69,4 @@ if __name__ == "__main__":
|
||||
test_mean_cycles(csv)
|
||||
test_memory_cycles(csv)
|
||||
|
||||
print("All ATT correctness tests passed.")
|
||||
print("Test Passed: All ATT correctness tests passed.")
|
||||
|
||||
Reference in New Issue
Block a user