| /dpdk/app/test-mldev/ |
| H A D | test_model_common.c | 15 ml_model_load(struct ml_test *test, struct ml_options *opt, struct ml_model *model, uint16_t fid) in ml_model_load() argument 22 if (model->state == MODEL_LOADED) in ml_model_load() 25 if (model->state != MODEL_INITIAL) in ml_model_load() 29 ret = ml_read_file(opt->filelist[fid].model, &model_params.size, in ml_model_load() 35 ret = rte_ml_model_load(opt->dev_id, &model_params, &model->id); in ml_model_load() 37 ml_err("Failed to load model : %s\n", opt->filelist[fid].model); in ml_model_load() 38 model->state = MODEL_ERROR; in ml_model_load() 47 ret = rte_ml_model_info_get(opt->dev_id, model->id, &model->info); in ml_model_load() 49 ml_err("Failed to get model info : %s\n", opt->filelist[fid].model); in ml_model_load() 53 model->state = MODEL_LOADED; in ml_model_load() [all …]
|
| H A D | test_inference_common.c | 73 ret = rte_mempool_get(t->model[fid].io_pool, (void **)&req); in ml_enqueue_single() 79 t->model[fid].info.nb_inputs); in ml_enqueue_single() 85 t->model[fid].info.nb_outputs); in ml_enqueue_single() 89 op->model_id = t->model[fid].id; in ml_enqueue_single() 90 op->nb_batches = t->model[fid].info.min_batches; in ml_enqueue_single() 96 if (t->model[fid].info.io_layout == RTE_ML_IO_LAYOUT_PACKED) { in ml_enqueue_single() 99 op->input[0]->length = t->model[fid].inp_qsize; in ml_enqueue_single() 104 op->output[0]->length = t->model[fid].out_qsize; in ml_enqueue_single() 108 for (i = 0; i < t->model[fid].info.nb_inputs; i++) { in ml_enqueue_single() 109 bufsz = RTE_ALIGN_CEIL(t->model[fid].info.input_info[i].size, in ml_enqueue_single() [all …]
|
| H A D | test_model_ops.c | 42 if (access(opt->filelist[i].model, F_OK) == -1) { in test_model_ops_opt_check() 44 opt->filelist[i].model); in test_model_ops_opt_check() 63 ml_dump_list("model", i, opt->filelist[i].model); in test_model_ops_opt_dump() 98 t->model[i].state = MODEL_INITIAL; in test_model_ops_setup() 173 ret = ml_model_load(test, opt, &t->model[i], i); in test_model_ops_subtest_a() 177 ret = ml_model_start(test, opt, &t->model[i], i); in test_model_ops_subtest_a() 181 ret = ml_model_stop(test, opt, &t->model[i], i); in test_model_ops_subtest_a() 185 ret = ml_model_unload(test, opt, &t->model[i], i); in test_model_ops_subtest_a() 192 ml_model_stop(test, opt, &t->model[i], i); in test_model_ops_subtest_a() 195 ml_model_unload(test, opt, &t->model[i], i); in test_model_ops_subtest_a() [all …]
|
| H A D | test_model_common.h | 36 int ml_model_load(struct ml_test *test, struct ml_options *opt, struct ml_model *model, 38 int ml_model_unload(struct ml_test *test, struct ml_options *opt, struct ml_model *model, 40 int ml_model_start(struct ml_test *test, struct ml_options *opt, struct ml_model *model, 42 int ml_model_stop(struct ml_test *test, struct ml_options *opt, struct ml_model *model,
|
| H A D | test_inference_ordered.c | 31 ret = ml_model_load(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 36 ret = ml_model_start(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 62 ret = ml_model_stop(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 67 ret = ml_model_unload(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 89 ml_model_stop(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 90 ml_model_unload(test, opt, &t->model[fid], fid); in test_inference_ordered_driver()
|
| H A D | test_inference_interleave.c | 31 ret = ml_model_load(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 35 ret = ml_model_start(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 66 ret = ml_model_stop(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 70 ret = ml_model_unload(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 91 ml_model_stop(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 92 ml_model_unload(test, opt, &t->model[fid], fid); in test_inference_interleave_driver()
|
| H A D | test_model_ops.h | 17 struct ml_model model[ML_TEST_MAX_MODELS]; member
|
| H A D | test_stats.c | 22 model_id = ((struct test_inference *)t)->model[fid].id; in ml_stats_get() 62 ((struct test_inference *)t)->model[fid].info.name); in ml_stats_get()
|
| H A D | ml_options.h | 31 char model[PATH_MAX]; member
|
| /dpdk/drivers/ml/cnxk/ |
| H A D | mvtvm_ml_stubs.c | 22 mvtvm_ml_model_get_layer_id(struct cnxk_ml_model *model, const char *layer_name, uint16_t *layer_id) in mvtvm_ml_model_get_layer_id() argument 24 RTE_SET_USED(model); in mvtvm_ml_model_get_layer_id() 32 mvtvm_ml_model_io_info_get(struct cnxk_ml_model *model, uint16_t layer_id) in mvtvm_ml_model_io_info_get() argument 34 RTE_SET_USED(model); in mvtvm_ml_model_io_info_get() 49 mvtvm_ml_model_xstat_name_set(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model, in mvtvm_ml_model_xstat_name_set() argument 53 RTE_SET_USED(model); in mvtvm_ml_model_xstat_name_set() 60 mvtvm_ml_model_xstat_get(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model, in mvtvm_ml_model_xstat_get() argument 64 RTE_SET_USED(model); in mvtvm_ml_model_xstat_get() 107 struct cnxk_ml_model *model) in mvtvm_ml_model_load() argument 111 RTE_SET_USED(model); in mvtvm_ml_model_load() [all …]
|
| H A D | cnxk_ml_model.c | 60 cnxk_ml_model_dump(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model, FILE *fp) in cnxk_ml_model_dump() argument 67 fprintf(fp, " Model Information (Model ID: %u, Name: %s)\n", model->model_id, model->name); in cnxk_ml_model_dump() 69 fprintf(fp, "%*s : %u\n", FIELD_LEN, "model_id", model->model_id); in cnxk_ml_model_dump() 70 fprintf(fp, "%*s : %s\n", FIELD_LEN, "name", model->name); in cnxk_ml_model_dump() 71 fprintf(fp, "%*s : %d\n", FIELD_LEN, "type", model->type); in cnxk_ml_model_dump() 72 fprintf(fp, "%*s : %d\n", FIELD_LEN, "subtype", model->subtype); in cnxk_ml_model_dump() 73 fprintf(fp, "%*s : 0x%016lx\n", FIELD_LEN, "model", PLT_U64_CAST(model)); in cnxk_ml_model_dump() 74 fprintf(fp, "%*s : %u\n", FIELD_LEN, "batch_size", model->batch_size); in cnxk_ml_model_dump() 75 fprintf(fp, "%*s : %u\n", FIELD_LEN, "nb_layers", model->nb_layers); in cnxk_ml_model_dump() 78 if (model->state == ML_CNXK_MODEL_STATE_LOADED) in cnxk_ml_model_dump() [all …]
|
| H A D | mvtvm_ml_stubs.h | 22 struct cnxk_ml_model *model); 23 int mvtvm_ml_model_unload(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model); 24 int mvtvm_ml_model_start(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model); 25 int mvtvm_ml_model_stop(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model); 27 int mvtvm_ml_model_get_layer_id(struct cnxk_ml_model *model, const char *layer_name, 29 struct cnxk_ml_io_info *mvtvm_ml_model_io_info_get(struct cnxk_ml_model *model, uint16_t layer_id); 31 void mvtvm_ml_model_xstat_name_set(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model, 33 uint64_t mvtvm_ml_model_xstat_get(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model,
|
| H A D | mvtvm_ml_model.h | 83 int mvtvm_ml_model_get_layer_id(struct cnxk_ml_model *model, const char *layer_name, 85 void mvtvm_ml_model_io_info_set(struct cnxk_ml_model *model); 86 struct cnxk_ml_io_info *mvtvm_ml_model_io_info_get(struct cnxk_ml_model *model, uint16_t layer_id); 87 void mvtvm_ml_model_info_set(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model);
|
| H A D | cn10k_ml_model.h | 329 struct cn10k_ml_model_metadata_model model; member 457 struct cnxk_ml_io_info *cn10k_ml_model_io_info_get(struct cnxk_ml_model *model, uint16_t layer_id); 460 void cn10k_ml_model_info_set(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_model *model, 464 int cn10k_ml_model_get_layer_id(struct cnxk_ml_model *model, const char *layer_name,
|
| H A D | meson.build | 79 message('drivers/ml/cnxk: Enabled TVM model support') 81 message('drivers/ml/cnxk: Disabled TVM model support')
|
| /dpdk/lib/graph/ |
| H A D | rte_graph_worker.c | 9 rte_graph_model_is_valid(uint8_t model) in rte_graph_model_is_valid() argument 11 if (model > RTE_GRAPH_MODEL_MCORE_DISPATCH) in rte_graph_model_is_valid() 18 rte_graph_worker_model_set(uint8_t model) in rte_graph_worker_model_set() argument 23 if (!rte_graph_model_is_valid(model)) in rte_graph_worker_model_set() 27 graph->graph->model = model; in rte_graph_worker_model_set() 35 if (!rte_graph_model_is_valid(graph->model)) in rte_graph_worker_model_get() 38 return graph->model; in rte_graph_worker_model_get()
|
| H A D | rte_graph_worker_common.h | 32 /* When adding a new graph model entry, update rte_graph_model_is_valid() implementation. */ 33 #define RTE_GRAPH_MODEL_RTC 0 /**< Run-To-Completion model. It is the default model. */ 35 /**< Dispatch model to support cross-core dispatching within core affinity. */ 36 #define RTE_GRAPH_MODEL_DEFAULT RTE_GRAPH_MODEL_RTC /**< Default graph model. */ 58 uint8_t model; /**< graph model */ 62 /* Fast schedule area for mcore dispatch model */ 71 } dispatch; /** Only used by dispatch model */ 107 /** Fast schedule area for mcore dispatch model 56 uint8_t model; /**< graph model */ global() member [all...] |
| /dpdk/lib/eal/x86/ |
| H A D | rte_cycles.c | 23 uint32_t family, model, ext_model; in rte_cpu_get_model() local 26 model = (fam_mod_step >> 4) & 0xf; in rte_cpu_get_model() 30 model += (ext_model << 4); in rte_cpu_get_model() 33 return model; in rte_cpu_get_model() 61 check_model_wsm_nhm(uint8_t model) in check_model_wsm_nhm() argument 63 switch (model) { in check_model_wsm_nhm() 80 check_model_gdm_dnv(uint8_t model) in check_model_gdm_dnv() argument 82 switch (model) { in check_model_gdm_dnv() 114 uint8_t mult, model; in get_tsc_freq_arch() local 160 model = rte_cpu_get_model(a); in get_tsc_freq_arch() [all …]
|
| /dpdk/doc/guides/tools/ |
| H A D | testmldev.rst | 76 Set the list of model files to be used for the tests. 82 Set the list of model, input, output and reference files to be used for the tests. 84 (i.e. ``--filelist <model,input,output>[,reference]``). 96 Set the number of inference repetitions to be executed in the test per each model. 177 Model tests are functional tests to validate ML model API. 192 List of model files to be used for the ``model_ops`` test can be specified 210 executes the sequence of load / start / stop / unload for a model in order, 211 followed by next model. 290 and is used to specify the list of files required to test with a single model. 291 Multiple filelist entries are supported by the test, one entry per model. [all …]
|
| /dpdk/doc/guides/mldevs/ |
| H A D | cnxk.rst | 27 Slow-path device and ML model handling: 274 Enable caching model data on ML ACC cores. 276 in synchronous mode during model start stage. 277 Caching of model data improves the inferencing throughput / latency for the model. 286 With the above configuration, model data caching is disabled on HW accelerator. 292 With the above configuration, model data caching is disabled on vdev. 298 for a model during model start. 303 Allocate OCM for the model from first available free slot. 306 Allocate OCM for the model from the slot with largest amount of free space. 314 With the above configuration, OCM allocation for the model would be done [all …]
|
| /dpdk/doc/guides/nics/ |
| H A D | avp.rst | 68 vif-model set to "avp". 75 first attachment will have a default vif-model of "virtio". The next two 76 network attachments will have a vif-model of "avp" and may be used with a DPDK 83 --nic net-id=${NETWORK2_UUID},vif-model=avp \ 84 --nic net-id=${NETWORK3_UUID},vif-model=avp \
|
| /dpdk/doc/guides/rawdevs/ |
| H A D | ifpga.rst | 247 #. Legacy model. 248 With legacy model FPGA cards like Intel PAC N3000 or N5000, there is 250 PR for those FPGA platforms. This model is only able to handle a 255 In this model, available AFU resources may allow instantiation of many VFs 258 card has implemented this model. 259 In this model, the AFU/PR slot was not connected to port device. For DFL's view, 261 model. On the other hand, each VF can start with an AFU feature header without 268 on the FPGA and choose different model to access the AFU resource. 271 model for OFS as illustrated below. In this reference design, it exports the
|
| /dpdk/app/graph/ |
| H A D | graph_priv.h | 29 enum graph_model model; member
|
| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_cpp.h | 213 void nfp_cpp_model_set(struct nfp_cpp *cpp, uint32_t model); 226 uint32_t nfp_cpp_model_autodetect(struct nfp_cpp *cpp, uint32_t *model);
|
| /dpdk/app/graph/examples/ |
| H A D | l2fwd_pcap.cli | 7 graph l2fwd coremask 0xff bsz 32 tmo 10 model default pcap_enable 1 num_pcap_pkts 100000 pcap_file …
|