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

Function ml_test_device_close

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

Source from the content-addressed store, hash-verified

153}
154
155int
156ml_test_device_close(struct ml_test *test, struct ml_options *opt)
157{
158 struct test_common *t = ml_test_priv(test);
159 int ret = 0;
160
161 RTE_SET_USED(t);
162
163 /* close device */
164 ret = rte_ml_dev_close(opt->dev_id);
165 if (ret != 0)
166 ml_err("Failed to close ML device, dev_id = %d\n", opt->dev_id);
167
168 return ret;
169}
170
171int
172ml_test_device_start(struct ml_test *test, struct ml_options *opt)

Callers 5

ml_inference_mldev_setupFunction · 0.85
test_device_reconfigureFunction · 0.85

Calls 2

ml_test_privFunction · 0.85
rte_ml_dev_closeFunction · 0.85

Tested by

no test coverage detected