MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ml_test_device_start

Function ml_test_device_start

dpdk/app/test-mldev/test_common.c:171–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171int
172ml_test_device_start(struct ml_test *test, struct ml_options *opt)
173{
174 struct test_common *t = ml_test_priv(test);
175 int ret;
176
177 RTE_SET_USED(t);
178
179 /* start device */
180 ret = rte_ml_dev_start(opt->dev_id);
181 if (ret != 0) {
182 ml_err("Failed to start ml device, dev_id = %d\n", opt->dev_id);
183 return ret;
184 }
185
186 return 0;
187}
188
189int
190ml_test_device_stop(struct ml_test *test, struct ml_options *opt)

Callers 3

ml_inference_mldev_setupFunction · 0.85
test_device_reconfigureFunction · 0.85

Calls 2

ml_test_privFunction · 0.85
rte_ml_dev_startFunction · 0.85

Tested by

no test coverage detected