From patchwork Wed Feb 1 09:04:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srikanth Yalavarthi X-Patchwork-Id: 122800 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2BF4641B98; Wed, 1 Feb 2023 10:05:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1016E42D2D; Wed, 1 Feb 2023 10:05:07 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1F5A84021F for ; Wed, 1 Feb 2023 10:05:05 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3116M2gf008963 for ; Wed, 1 Feb 2023 01:05:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=10YGZn+5am9Eeu/SsTkb/JODOLLXKu5EXBJvgzUfui4=; b=ViKnGpJRYAKRg8ruDKnQUMripmJsMHeKo25uld4zlwCi4Vmz9R84JZbbxmqGZVoDj5Mh 7gy0TW9coQXA/ywOTJ/RiSrZOoQ1pft9Z+9NmVcue9x4+COP3eekbVBiRt8U9dNLPK4R JOMA2rcFq9sNtgBNib5IUDPO28b+9IAo5TvADUTqdjD/d4PAk/58MVtJaRZwjOX/FJbe D2x3JJneA4s0TOqzPUsrcQdwQKt1b7TJcWAFcgTcgST7x11o//fa96HTY9Ten2aEdVNF 4knse1VdX9Doj3Uhuf0lCr6/W3DZ/LjvWwDRROVpYA+agIQa+sTSlw9kQQD3hQkId2uC cg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nfjrj0p5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 01 Feb 2023 01:05:04 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 1 Feb 2023 01:05:02 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Wed, 1 Feb 2023 01:05:02 -0800 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id CC2933F705E; Wed, 1 Feb 2023 01:05:01 -0800 (PST) From: Srikanth Yalavarthi To: CC: , , , , Srikanth Yalavarthi Subject: [PATCH v4 0/4] Implementation of ML common code Date: Wed, 1 Feb 2023 01:04:49 -0800 Message-ID: <20230201090454.14649-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221208193532.16718-1-syalavarthi@marvell.com> References: <20221208193532.16718-1-syalavarthi@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 4h35Nfu7gxdIvHz4E-YIRQxkrq8RHHPA X-Proofpoint-GUID: 4h35Nfu7gxdIvHz4E-YIRQxkrq8RHHPA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-01_03,2023-01-31_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Machine Learning common code ---------------------------- This patch series implements the common ML code that can be used by ML drivers. Common code include functions to convert ML IO type to string, IO format type to string, function get size of ML IO type, and functions for converting data types from higher precision to lower precision and vice-versa. Data type conversion functions support handling float32, float16, bfloat16, uint8, int8, uint16 and int16. Two versions of conversion functions are implemented in the series, generic scalar version and vector version using Arm NEON intrinsics. When compiling DPDK for platform supporting Arm NEON, vector NEON version of the routines would be enabled. Compilation would fall back to generic scalar versions on platform like x86_64 / PowerPC etc., that don't support Arm NEON. Srikanth Yalavarthi (4): mldev: add headers for internal ML functions mldev: implement ML IO type handling functions mldev: add scalar type conversion functions mldev: add Arm NEON type conversion routines lib/mldev/meson.build | 7 + lib/mldev/mldev_utils.c | 118 +++++ lib/mldev/mldev_utils.h | 345 +++++++++++++ lib/mldev/mldev_utils_neon.c | 873 +++++++++++++++++++++++++++++++++ lib/mldev/mldev_utils_scalar.c | 720 +++++++++++++++++++++++++++ lib/mldev/version.map | 16 + 6 files changed, 2079 insertions(+) create mode 100644 lib/mldev/mldev_utils.c create mode 100644 lib/mldev/mldev_utils.h create mode 100644 lib/mldev/mldev_utils_neon.c create mode 100644 lib/mldev/mldev_utils_scalar.c --- 2.17.1