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

Function ml_test_cap_check

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

Source from the content-addressed store, hash-verified

69}
70
71bool
72ml_test_cap_check(struct ml_options *opt)
73{
74 struct rte_ml_dev_info dev_info;
75
76 rte_ml_dev_info_get(opt->dev_id, &dev_info);
77 if (dev_info.max_models == 0) {
78 ml_err("Not enough mldev models supported = %u", dev_info.max_models);
79 return false;
80 }
81
82 return true;
83}
84
85int
86ml_test_opt_check(struct ml_options *opt)

Callers 3

test_model_ops_cap_checkFunction · 0.85
test_inference_cap_checkFunction · 0.85
test_device_cap_checkFunction · 0.85

Calls 1

rte_ml_dev_info_getFunction · 0.85

Tested by

no test coverage detected