forked from OpenDataPlane/odp-dpdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-dpdk: ml: implement on top of mldev
Add ML implementation, which utilizes DPDK's mldev. Limitations: - Only a single device can be used. The device is specified in the configuration file. - Only a single inference at a time per model. - The maximum number of concurrent inferences is limited by the number of queue pairs. - Inference is always synchronous, regardless of completion mode. Signed-off-by: Jere Leppänen <[email protected]>
- Loading branch information
1 parent
61c2fce
commit 9506995
Showing
13 changed files
with
2,222 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
########################################################################## | ||
# DPDK ML API | ||
########################################################################## | ||
AC_DEFUN([ODP_ML], [dnl | ||
ml_support=no | ||
ml_option=yes | ||
AC_ARG_ENABLE([dpdk-ml], | ||
[AS_HELP_STRING([--disable-dpdk-ml], | ||
[disable ML support] | ||
[[default=enabled] (linux-dpdk)])], | ||
[if test "x$enableval" = "xno"; then | ||
ml_option=no | ||
fi]) | ||
AS_IF([test "x$ml_option" != "xno"], [dnl | ||
######################################################################### | ||
# If dpdk mldev header is available, enable ML API | ||
######################################################################### | ||
OLD_CPPFLAGS=$CPPFLAGS | ||
CPPFLAGS="$DPDK_CFLAGS $CPPFLAGS" | ||
AC_CHECK_HEADERS([rte_mldev.h], [ml_support=yes], [], []) | ||
CPPFLAGS=$OLD_CPPFLAGS | ||
]) | ||
AC_CONFIG_COMMANDS_PRE([dnl | ||
AM_CONDITIONAL([WITH_ML], [test x$ml_support = xyes]) | ||
]) | ||
# Even if ML is not enabled, -lm is needed by quantization. | ||
ML_LIBS="-lm" | ||
AC_SUBST([ML_LIBS]) | ||
]) # ODP_ML |
Oops, something went wrong.