Skip to content

Commit 1f4ae66

Browse files
Quick fixes for automotive setup
1 parent c73bd63 commit 1f4ae66

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

loadgen/bindings/python_api.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class GroupedQuerySampleLibraryTrampoline : public QuerySampleLibrary {
142142
size_t performance_sample_count,
143143
LoadSamplesToRamCallback load_samples_to_ram_cb,
144144
UnloadSamplesFromRamCallback unload_samples_from_ram_cb,
145-
pybind11::array_t<size_t>& group_sizes)
145+
pybind11::array_t<size_t> group_sizes)
146146
: name_(std::move(name)),
147147
performance_sample_count_(performance_sample_count),
148148
load_samples_to_ram_cb_(load_samples_to_ram_cb),
@@ -290,7 +290,7 @@ void DestroyQDL(uintptr_t qdl) {
290290
}
291291

292292
uintptr_t ConstructGroupedQSL(
293-
pybind11::array_t<size_t>& group_sizes,
293+
pybind11::array_t<size_t> group_sizes,
294294
size_t performance_sample_count,
295295
LoadSamplesToRamCallback load_samples_to_ram_cb,
296296
UnloadSamplesFromRamCallback unload_samples_from_ram_cb) {
@@ -300,10 +300,10 @@ uintptr_t ConstructGroupedQSL(
300300
return reinterpret_cast<uintptr_t>(qsl);
301301
}
302302

303-
void DestroyGroupedQSL(uintptr_t qdl) {
304-
QueryDispatchLibraryTrampoline* qdl_cast =
305-
reinterpret_cast<QueryDispatchLibraryTrampoline*>(qdl);
306-
delete qdl_cast;
303+
void DestroyGroupedQSL(uintptr_t qsl) {
304+
GroupedQuerySampleLibraryTrampoline* qsl_cast =
305+
reinterpret_cast<GroupedQuerySampleLibraryTrampoline*>(qsl);
306+
delete qsl_cast;
307307
}
308308

309309
void StartTest(uintptr_t sut, uintptr_t qsl, mlperf::TestSettings test_settings,
@@ -553,7 +553,7 @@ PYBIND11_MODULE(mlperf_loadgen, m) {
553553

554554
m.def("ConstructGroupedQSL", &py::ConstructGroupedQSL,
555555
"Construct grouped query sample library.");
556-
m.def("DestroyGroupedQSL", &py::DestroyQSL,
556+
m.def("DestroyGroupedQSL", &py::DestroyGroupedQSL,
557557
"Destroy the object created by ConstructGroupedQSL.");
558558

559559
m.def("StartTest", &py::StartTest,

loadgen/demos/py_demo_grouped_qsl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def main(argv):
7474
# 1024, 128, load_samples_to_ram, unload_samples_from_ram
7575
# )
7676
mlperf_loadgen.StartTestWithGroupedQSL(sut, qsl, settings, "")
77-
mlperf_loadgen.DestroyQSL(qsl)
77+
mlperf_loadgen.DestroyGroupedQSL(qsl)
7878
mlperf_loadgen.DestroySUT(sut)
7979

8080

loadgen/test_settings_internal.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ void TestSettingsInternal::LogSummary(AsyncSummary &summary) const {
509509
summary("ttft_latency (ns): ", server_ttft_latency);
510510
summary("tpot_latency (ns): ", server_tpot_latency);
511511
}
512+
summary("target_latency_percentile : ", target_latency_percentile);
512513
summary("max_async_queries : ", max_async_queries);
513514
summary("min_duration (ms): ", min_duration.count());
514515
summary("max_duration (ms): ", max_duration.count());

0 commit comments

Comments
 (0)