From df34c0e3deb4b2faae95475c9d1a37fbd1aa0f7b Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 8 Apr 2022 09:13:28 +0200 Subject: [PATCH] pkg/ruy: add support for matrix multiplication library --- pkg/ruy/Kconfig | 9 +++++++++ pkg/ruy/Makefile | 9 +++++++++ pkg/ruy/Makefile.dep | 3 +++ pkg/ruy/Makefile.include | 5 +++++ pkg/ruy/doc.txt | 11 +++++++++++ pkg/ruy/ruy.mk | 9 +++++++++ 6 files changed, 46 insertions(+) create mode 100644 pkg/ruy/Kconfig create mode 100644 pkg/ruy/Makefile create mode 100644 pkg/ruy/Makefile.dep create mode 100644 pkg/ruy/Makefile.include create mode 100644 pkg/ruy/doc.txt create mode 100644 pkg/ruy/ruy.mk diff --git a/pkg/ruy/Kconfig b/pkg/ruy/Kconfig new file mode 100644 index 0000000000..1298c6d4f3 --- /dev/null +++ b/pkg/ruy/Kconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2022 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. + +config PACKAGE_RUY + bool "The ruy matrix multiplication library" + depends on TEST_KCONFIG diff --git a/pkg/ruy/Makefile b/pkg/ruy/Makefile new file mode 100644 index 0000000000..ceb05e4cf0 --- /dev/null +++ b/pkg/ruy/Makefile @@ -0,0 +1,9 @@ +PKG_NAME=ruy +PKG_URL=https://github.com/google/ruy +PKG_VERSION=7ef39c5745a61f43071e699c6a96da41701ae59f +PKG_LICENSE=Apache 2.0 + +include $(RIOTBASE)/pkg/pkg.mk + +all: + @: diff --git a/pkg/ruy/Makefile.dep b/pkg/ruy/Makefile.dep new file mode 100644 index 0000000000..cad3b908b7 --- /dev/null +++ b/pkg/ruy/Makefile.dep @@ -0,0 +1,3 @@ +FEATURES_REQUIRED += cpp + +USEMODULE += cpp11-compat diff --git a/pkg/ruy/Makefile.include b/pkg/ruy/Makefile.include new file mode 100644 index 0000000000..dfa83328a4 --- /dev/null +++ b/pkg/ruy/Makefile.include @@ -0,0 +1,5 @@ +INCLUDES += -I$(PKGDIRBASE)/ruy + +PSEUDOMODULES += ruy + +CFLAGS += -DTHIRD_PARTY_RUY_RUY_GTEST_WRAPPER_H_ diff --git a/pkg/ruy/doc.txt b/pkg/ruy/doc.txt new file mode 100644 index 0000000000..99b52c507f --- /dev/null +++ b/pkg/ruy/doc.txt @@ -0,0 +1,11 @@ +/** + * @defgroup pkg_ruy The ruy matrix multiplication library + * @ingroup pkg + * @brief ruy is a matrix multiplication library + * + * # License + * + * Licensed under Apache 2.0. + * + * @see https://github.com/google/ruy + */ diff --git a/pkg/ruy/ruy.mk b/pkg/ruy/ruy.mk new file mode 100644 index 0000000000..d72b3111e2 --- /dev/null +++ b/pkg/ruy/ruy.mk @@ -0,0 +1,9 @@ +MODULE = ruy + +SRCXXEXT = cc +SRCXXEXCLUDE = $(wildcard *_test.$(SRCXXEXT)) +SRCXXEXCLUDE += benchmark.cc pack_%.cc test_%.cc + +CFLAGS += -Wno-unused-variable + +include $(RIOTBASE)/Makefile.base