diff --git a/test/shim_test/io_test.cpp b/test/shim_test/io_test.cpp index 747e8be0..b7517174 100644 --- a/test/shim_test/io_test.cpp +++ b/test/shim_test/io_test.cpp @@ -246,6 +246,18 @@ TEST_io_latency(device::id_type id, std::shared_ptr sdev, arg_type& arg) io_test(id, sdev.get(), 1000, 1, 1); } +void +TEST_io_runlist_latency(device::id_type id, std::shared_ptr sdev, arg_type& arg) +{ + io_test_parameter_init(IO_TEST_LATENCY_PERF, static_cast(arg[0])); + io_test(id, sdev.get(), 32000, 1, 1); + io_test(id, sdev.get(), 16000, 1, 2); + io_test(id, sdev.get(), 8000, 1, 4); + io_test(id, sdev.get(), 4000, 1, 8); + io_test(id, sdev.get(), 2000, 1, 16); + io_test(id, sdev.get(), 1333, 1, 24); +} + void TEST_io_throughput(device::id_type id, std::shared_ptr sdev, arg_type& arg) { diff --git a/test/shim_test/shim_test.cpp b/test/shim_test/shim_test.cpp index 8057b2f7..28444b14 100644 --- a/test/shim_test/shim_test.cpp +++ b/test/shim_test/shim_test.cpp @@ -29,6 +29,7 @@ using arg_type = const std::vector; void TEST_export_import_bo(device::id_type, std::shared_ptr, arg_type&); void TEST_io(device::id_type, std::shared_ptr, arg_type&); void TEST_io_latency(device::id_type, std::shared_ptr, arg_type&); +void TEST_io_runlist_latency(device::id_type, std::shared_ptr, arg_type&); void TEST_io_throughput(device::id_type, std::shared_ptr, arg_type&); void TEST_noop_io_with_dup_bo(device::id_type, std::shared_ptr, arg_type&); void TEST_shim_umq_vadd(device::id_type, std::shared_ptr, arg_type&); @@ -563,6 +564,9 @@ std::vector test_list { test_case{ "io test no op with duplicated BOs", TEST_POSITIVE, dev_filter_is_aie2, TEST_noop_io_with_dup_bo, {} }, + test_case{ "io test no-op kernel latency listed command", + TEST_POSITIVE, dev_filter_is_aie2, TEST_io_runlist_latency, { IO_TEST_NOOP_RUN } + }, }; } // namespace