146 extern int rte_ml_dev_logtype;
148 #define RTE_MLDEV_LOG(level, fmt, args...) \ 149 rte_log(RTE_LOG_##level, rte_ml_dev_logtype, "%s(): " fmt "\n", __func__, ##args) 151 #define RTE_ML_STR_MAX 128 154 #define RTE_MLDEV_DEFAULT_MAX 32 696 const uint16_t stat_ids[], uint64_t values[], uint16_t nb_ids);
719 const uint16_t stat_ids[], uint16_t nb_ids);
1017 uint64_t *input_qsize, uint64_t *input_dsize);
1047 uint64_t *output_qsize, uint64_t *output_dsize);
1073 rte_ml_io_quantize(int16_t dev_id, uint16_t model_id, uint16_t nb_batches,
void *dbuffer,
__rte_experimental int rte_ml_dev_selftest(int16_t dev_id)
__rte_experimental int rte_ml_dev_is_valid_dev(int16_t dev_id)
__rte_experimental void rte_ml_dev_stats_reset(int16_t dev_id)
__rte_experimental uint16_t rte_ml_dequeue_burst(int16_t dev_id, uint16_t qp_id, struct rte_ml_op **ops, uint16_t nb_ops)
__rte_experimental int rte_ml_io_quantize(int16_t dev_id, uint16_t model_id, uint16_t nb_batches, void *dbuffer, void *qbuffer)
struct rte_ml_buff_seg * next
__rte_experimental int rte_ml_model_load(int16_t dev_id, struct rte_ml_model_params *params, uint16_t *model_id)
struct rte_mempool * mempool
__rte_experimental int rte_ml_op_error_get(int16_t dev_id, struct rte_ml_op *op, struct rte_ml_op_error *error)
__rte_experimental int rte_ml_dev_xstats_reset(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, const uint16_t stat_ids[], uint16_t nb_ids)
char name[RTE_MEMPOOL_NAMESIZE]
__rte_experimental int rte_ml_io_input_size_get(int16_t dev_id, uint16_t model_id, uint32_t nb_batches, uint64_t *input_qsize, uint64_t *input_dsize)
__rte_experimental int rte_ml_dev_xstats_by_name_get(int16_t dev_id, const char *name, uint16_t *stat_id, uint64_t *value)
__rte_experimental int rte_ml_model_info_get(int16_t dev_id, uint16_t model_id, struct rte_ml_model_info *model_info)
__rte_experimental int rte_ml_dev_init(size_t dev_max)
__rte_experimental void rte_ml_op_pool_free(struct rte_mempool *mempool)
__rte_experimental int rte_ml_model_start(int16_t dev_id, uint16_t model_id)
__rte_experimental int rte_ml_model_params_update(int16_t dev_id, uint16_t model_id, void *buffer)
__rte_experimental int rte_ml_dev_stats_get(int16_t dev_id, struct rte_ml_dev_stats *stats)
rte_ml_dev_stop_flush_t cb
__rte_experimental uint16_t rte_ml_dev_count(void)
__rte_experimental int rte_ml_model_unload(int16_t dev_id, uint16_t model_id)
__rte_experimental int rte_ml_dev_start(int16_t dev_id)
void(* rte_ml_dev_stop_flush_t)(int16_t dev_id, uint16_t qp_id, struct rte_ml_op *op)
__rte_experimental uint16_t rte_ml_enqueue_burst(int16_t dev_id, uint16_t qp_id, struct rte_ml_op **ops, uint16_t nb_ops)
__rte_experimental int rte_ml_dev_info_get(int16_t dev_id, struct rte_ml_dev_info *dev_info)
#define __rte_cache_aligned
__rte_experimental int rte_ml_dev_xstats_names_get(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, struct rte_ml_dev_xstats_map *xstats_map, uint32_t size)
__rte_experimental int rte_ml_dev_socket_id(int16_t dev_id)
uint64_t dequeue_err_count
__rte_experimental int rte_ml_dev_configure(int16_t dev_id, const struct rte_ml_dev_config *config)
__rte_experimental int rte_ml_dev_queue_pair_setup(int16_t dev_id, uint16_t queue_pair_id, const struct rte_ml_dev_qp_conf *qp_conf, int socket_id)
__rte_experimental int rte_ml_io_output_size_get(int16_t dev_id, uint16_t model_id, uint32_t nb_batches, uint64_t *output_qsize, uint64_t *output_dsize)
__rte_experimental struct rte_mempool * rte_ml_op_pool_create(const char *name, unsigned int nb_elts, unsigned int cache_size, uint16_t user_size, int socket_id)
uint64_t enqueue_err_count
__rte_experimental int rte_ml_dev_xstats_get(int16_t dev_id, enum rte_ml_dev_xstats_mode mode, int32_t model_id, const uint16_t stat_ids[], uint64_t values[], uint16_t nb_ids)
__rte_experimental int rte_ml_dev_close(int16_t dev_id)
__rte_experimental int rte_ml_dev_stop(int16_t dev_id)
__rte_experimental int rte_ml_model_stop(int16_t dev_id, uint16_t model_id)
__rte_experimental int rte_ml_io_dequantize(int16_t dev_id, uint16_t model_id, uint16_t nb_batches, void *qbuffer, void *dbuffer)
__rte_experimental int rte_ml_dev_dump(int16_t dev_id, FILE *fd)
const struct rte_ml_io_info * input_info
const struct rte_ml_io_info * output_info