From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=habYYP6NnKe/0GK/UhenHok8ejx9aTduHciwTM6KfE4=; b=BucFSoqP3b632gdGzASh29TD2vljFaA3MjQkZUjmwAKHkvcvNmGhyHhj2/V5hWt3gV AwYcz0Ng2SXJMesEvZpP+UlPMPzHv1pMhBqa4j9p4hpoxl1ooxNfRypJrv/u7DQNED11 FrzhUVlICj4tBthTNE2wEYCZ5mPnoaIeU40FqBxO4by0sLLLSwOt9/XsGc2L0DP1mYjf 09FO2S/tnK7N9hysuCduCh7WeyXtl15SwHYc85O/+NwWeuPnGZEGxoPQDhgNJglYF/3C vWYtmpDpQgFvybwNnbL6daaKZRfBheZJuz4PY4XoO7MomgQpa1R3mRvzXXCc/DisDLrg xvKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=habYYP6NnKe/0GK/UhenHok8ejx9aTduHciwTM6KfE4=; b=qfWzrdPibfDrzVBMU0BFBFtcd+LieDnl1t8EgUfInm0N88Pk1pDeaD8xkxbwVmjRMS dn7hZY24MNS5uWwRRPP6JxYs5ojLloG2/+nh+mCuz9ZZE3JaDb/hd94h3a4GFFoXkr7+ t/220C12tKKQQgOLuSw2NuGAj9TBKEZwD36gB+bXcRUyBowZko/XfUygM74YvezbYRM8 lyOU3T/09GQFu/SCKYk4veVcI9tPmcDlKDHdKT3hPGxc8WXm3oyXvUksymg+m87uMLRT ksEIr3Mtvhld8XFdeJLPBq32wOREjNykPEBsGXnhtfZfBKfVp6sa80I++NEuIPGaNEMS cKZQ== X-Gm-Message-State: AHPjjUj5DFDWJF38d3QL3QJAnC0mjDPXH64JIHd5aed6DRKBf0Gx3+MH KShJvNutAziCBx73 X-Google-Smtp-Source: ADKCNb7ZziIITHNhjn2xa58r7iWAyT5bDH1htHnoWgr8IbLkLToSGOfmhYBtOpCjaJtFGf7LJ1FhHQ== X-Received: by 10.99.124.29 with SMTP id x29mr2930511pgc.61.1504280072816; Fri, 01 Sep 2017 08:34:32 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id s73sm756346pfe.65.2017.09.01.08.34.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2017 08:34:32 -0700 (PDT) Date: Fri, 1 Sep 2017 08:34:28 -0700 From: Stephen Hemminger To: Xiaoyun Li Cc: bruce.richardson@intel.com, dev@dpdk.org, zhihong.wang@intel.com, qi.z.zhang@intel.com, wenzhuo.lu@intel.com Message-ID: <20170901083428.193c0fe8@xeon-e3> In-Reply-To: <1504256222-32969-2-git-send-email-xiaoyun.li@intel.com> 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 Subject: Re: [dpdk-dev] [PATCH v2 1/3] eal/x86: run-time dispatch over memcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 15:34:33 -0000 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.