[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NNPACK PATCH 1/1] Add support for ARM64


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 22 Jan 2020 10:40:51 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+55i73otjaTEnSLZqpFDSt8cMjCCXEvuipyIH8YiVeo=; b=LHZH0QOjf4QiZo6L8tyhyUzKdK7JdWVpSEybwm29MI0n8093X0qgPpmAXokK9EqzJpeDDhkERk/c7IDpPKjlRN0QwFYNfZ8wQDRTQtufymNRosjnz6fF/fYOta29zCTXYXBYtWTc94a8YE/90LwwkEFd+cmvAl+AOQnzSj5XZWhQbOgB8a/yAyUmT9Pm3grozzz75mG7KEdk3an1tK2CuiJSQITStMNowIRvoH42oS2Kqn8bldNqxP/gN7T3/eedlTlgDTLFRSv9NmPsLXtHkYuM4oY75UO0zgOyNGr/TDmD5xgD7TuupMDA1pc+PTjBmla0b09LNK1Bxz5AcGu4Vg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O45YoWFexENDn0AOJCE13EnCqMcyjOd4MEL52E1x/7qMI6X3UduQyeqaJdgoLMBF1hErAkky+zjBaaYs/XPhPZFPfVIvST+TJLR+zYhPVL/clCW/0HgyHfOf/jfK0ZJFHC6Qy3tg+kp2Cg91tJkV8QzNWT30qaiJH6X6pJZIwgvaWEij0NZdexDMAChghQekpCDR47kSHYPm2YtQ5ksC9mtfrx5SIsbog2/J43jhgxka8B3D/nCqXdd/JOs46+7+UypeAMPsLdWzwjmcvScEukZ7/ZG5Gx0Q15tt07Kf40R4as8tqd+iE7c8fEfqRmEEGjeM3N2mhGZO28LE6VQofw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 22 Jan 2020 10:40:56 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV0RBqYOzenvveBEqwX9nnmDNd1g==
  • Thread-topic: [UNIKRAFT/NNPACK PATCH 1/1] Add support for ARM64

We define CPUINFO_ARCH_ARM64 when ARM64 is selected.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Makefile.uk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile.uk b/Makefile.uk
index 2da2af1..de7c6b4 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -59,6 +59,7 @@ LIBNNPACK_SRC = $(LIBNNPACK_ORIGIN)/$(LIBNNPACK_SUBDIR)
 LIBNNPACK_GLOBAL_INCLUDES-y += -I$(LIBNNPACK_SRC)/src
 LIBNNPACK_GLOBAL_INCLUDES-y += -I$(LIBNNPACK_SRC)/src/ref
 LIBNNPACK_GLOBAL_INCLUDES-y += -I$(LIBNNPACK_SRC)/include
+LIBNNPACK_GLOBAL_INCLUDES-y += -I$(LIBNNPACK_SRC)/include/nnpack
 LIBNNPACK_GLOBAL_INCLUDES-y += -I$(LIBNNPACK_BASE)/include
 
 CINCLUDES-$(CONFIG_LIBNNPACK) += $(LIBNNPACK_GLOBAL_INCLUDES-y)
@@ -78,8 +79,14 @@ LIBNNPACK_SUPPRESS_FLAGS += -Wno-unused-parameter            
        \
 LIBNNPACK_CFLAGS-y     += $(LIBNNPACK_SUPPRESS_FLAGS) -Wno-pointer-to-int-cast 
-Wno-int-to-pointer-cast
 LIBNNPACK_CXXFLAGS-y   += $(LIBNNPACK_SUPPRESS_FLAGS)
 
-LIBNNPACK_CFLAGS-y     +=  -D__linux__ -DCPUINFO_ARCH_X86
-LIBNNPACK_CXXFLAGS-y   +=  -D__linux__ -DCPUINFO_ARCH_X86
+LIBNNPACK_CFLAGS-y     +=  -D__linux__
+LIBNNPACK_CXXFLAGS-y   +=  -D__linux__
+
+LIBNNPACK_CFLAGS-$(CONFIG_ARCH_X86_64) += -DCPUINFO_ARCH_X86
+LIBNNPACK_CXXFLAGS-$(CONFIG_ARCH_X86_64)       += -DCPUINFO_ARCH_X86
+
+LIBNNPACK_CFLAGS-$(CONFIG_ARCH_ARM_64) += -DCPUINFO_ARCH_ARM64
+LIBNNPACK_CXXFLAGS-$(CONFIG_ARCH_ARM_64)       += -DCPUINFO_ARCH_ARM64
 
 LIBNNPACK_CFLAGS-$(CONFIG_LIBNNPACK_BACKEND_PSIMD)     += -DNNP_BACKEND_PSIMD
 LIBNNPACK_CXXFLAGS-$(CONFIG_LIBNNPACK_BACKEND_PSIMD)   += -DNNP_BACKEND_PSIMD
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.