summaryrefslogtreecommitdiff
path: root/app/test-mldev/test_inference_interleave.c
diff options
context:
space:
mode:
authorSrikanth Yalavarthi <syalavarthi@marvell.com>2023-04-22 22:14:02 -0700
committerThomas Monjalon <thomas@monjalon.net>2023-06-06 15:05:27 +0200
commit77fefa0a129e661caf0f3628f48204ed3886ab5f (patch)
tree45abbd7a8911f6bc005f9326af0cff8b9c1c6367 /app/test-mldev/test_inference_interleave.c
parentf06968e992818548817a41113b4a405555e1a959 (diff)
app/mldev: enable reporting xstats
Enabled reporting xstats in ML test application. Enabled stats option for model_ops test case. Added common files for xstats and throughput functions. Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
Diffstat (limited to 'app/test-mldev/test_inference_interleave.c')
-rw-r--r--app/test-mldev/test_inference_interleave.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/test-mldev/test_inference_interleave.c b/app/test-mldev/test_inference_interleave.c
index 23b8efe4f0..9503dda042 100644
--- a/app/test-mldev/test_inference_interleave.c
+++ b/app/test-mldev/test_inference_interleave.c
@@ -7,6 +7,7 @@
#include "ml_common.h"
#include "test_inference_common.h"
+#include "test_stats.h"
static int
test_inference_interleave_driver(struct ml_test *test, struct ml_options *opt)
@@ -58,7 +59,8 @@ test_inference_interleave_driver(struct ml_test *test, struct ml_options *opt)
ml_inference_iomem_destroy(test, opt, fid);
}
- ml_inference_throughput_get(test, opt);
+ for (fid = 0; fid < opt->nb_filelist; fid++)
+ ml_stats_get(test, opt, RTE_ML_DEV_XSTATS_MODEL, fid);
for (fid = 0; fid < opt->nb_filelist; fid++) {
ret = ml_model_stop(test, opt, &t->model[fid], fid);
@@ -70,6 +72,8 @@ test_inference_interleave_driver(struct ml_test *test, struct ml_options *opt)
goto error;
}
+ ml_stats_get(test, opt, RTE_ML_DEV_XSTATS_DEVICE, -1);
+ ml_throughput_get(test, opt);
ml_inference_mem_destroy(test, opt);
ret = ml_inference_mldev_destroy(test, opt);