From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v2 1/3] eal/x86: run-time dispatch over memcpy Date: Fri, 1 Sep 2017 08:34:28 -0700 Message-ID: <20170901083428.193c0fe8@xeon-e3> References: <1503626773-184682-1-git-send-email-xiaoyun.li@intel.com> <1504256222-32969-1-git-send-email-xiaoyun.li@intel.com> <1504256222-32969-2-git-send-email-xiaoyun.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bruce.richardson@intel.com, dev@dpdk.org, zhihong.wang@intel.com, qi.z.zhang@intel.com, wenzhuo.lu@intel.com To: Xiaoyun Li Return-path: Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by dpdk.org (Postfix) with ESMTP id 9575D3770 for ; Fri, 1 Sep 2017 17:34:33 +0200 (CEST) Received: by mail-pg0-f48.google.com with SMTP id t193so1555516pgc.1 for ; Fri, 01 Sep 2017 08:34:33 -0700 (PDT) In-Reply-To: <1504256222-32969-2-git-send-email-xiaoyun.li@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 1 Sep 2017 16:57:00 +0800 Xiaoyun Li wrote: > This patch dynamically selects functions of memcpy at run-time based > on CPU flags that current machine supports. This patch uses function > pointers which are bind to the relative functions at constrctor time. > In addition, AVX512 instructions set would be compiled only if users > config it enabled and the compiler supports it. > > Signed-off-by: Xiaoyun Li Maybe a less intrusive way would be to build multiple shared libraries, one for each CPU type, then do dynamic binding at startup.