Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No-op kernel runlist latency shim test #221

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions test/shim_test/io_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ TEST_io_latency(device::id_type id, std::shared_ptr<device> sdev, arg_type& arg)
io_test(id, sdev.get(), 1000, 1, 1);
}

void
TEST_io_runlist_latency(device::id_type id, std::shared_ptr<device> sdev, arg_type& arg)
{
io_test_parameter_init(IO_TEST_LATENCY_PERF, static_cast<unsigned int>(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<device> sdev, arg_type& arg)
{
Expand Down
4 changes: 4 additions & 0 deletions test/shim_test/shim_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ using arg_type = const std::vector<uint64_t>;
void TEST_export_import_bo(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_io(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_io_latency(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_io_runlist_latency(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_io_throughput(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_noop_io_with_dup_bo(device::id_type, std::shared_ptr<device>, arg_type&);
void TEST_shim_umq_vadd(device::id_type, std::shared_ptr<device>, arg_type&);
Expand Down Expand Up @@ -563,6 +564,9 @@ std::vector<test_case> 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
Expand Down