All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] mk: add tuning for default machine type
@ 2017-12-15 23:28 Ferruh Yigit
  2017-12-16  1:48 ` [PATCH v2] " Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2017-12-15 23:28 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Ferruh Yigit, Bruce Richardson, Konstantin Ananyev

Wile keeping backward compatibility for default machine type, tune
binary for latest generation of cores to benefit more from them.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---

Cc: Bruce Richardson <bruce.richardson@intel.com>
Cc: Konstantin Ananyev <konstantin.ananyev@intel.com>
---
 mk/machine/default/rte.vars.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mk/machine/default/rte.vars.mk b/mk/machine/default/rte.vars.mk
index 71a25bcae..d174532f2 100644
--- a/mk/machine/default/rte.vars.mk
+++ b/mk/machine/default/rte.vars.mk
@@ -56,3 +56,9 @@
 # CPU_ASFLAGS =
 
 MACHINE_CFLAGS += -march=corei7
+
+-include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
+
+ifeq ($(shell test $(GCC_VERSION) -ge 49 && echo 1), 1)
+MACHINE_CFLAGS += -mtune=intel
+endif
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] mk: add tuning for default machine type
  2017-12-15 23:28 [RFC] mk: add tuning for default machine type Ferruh Yigit
@ 2017-12-16  1:48 ` Ferruh Yigit
  2017-12-16  1:50   ` [RFC v3] " Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2017-12-16  1:48 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Ferruh Yigit, Bruce Richardson, Konstantin Ananyev

Wile keeping backward compatibility for default machine type, tune
binary for latest generation of cores to benefit more from them.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---

Cc: Bruce Richardson <bruce.richardson@intel.com>
Cc: Konstantin Ananyev <konstantin.ananyev@intel.com>

v2:
* prevent warning via clang:
  bin/sh: line 0: test: -ge: unary operator expected
---
 mk/machine/default/rte.vars.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mk/machine/default/rte.vars.mk b/mk/machine/default/rte.vars.mk
index 71a25bcae..914964302 100644
--- a/mk/machine/default/rte.vars.mk
+++ b/mk/machine/default/rte.vars.mk
@@ -56,3 +56,9 @@
 # CPU_ASFLAGS =
 
 MACHINE_CFLAGS += -march=corei7
+
+-include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
+
+ifeq ($(shell test -n "$(GCC_VERSION)" && test $(GCC_VERSION) -ge 49 && echo 1), 1)
+MACHINE_CFLAGS += -mtune=intel
+endif
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [RFC v3] mk: add tuning for default machine type
  2017-12-16  1:48 ` [PATCH v2] " Ferruh Yigit
@ 2017-12-16  1:50   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-12-16  1:50 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev, Ferruh Yigit, Bruce Richardson, Konstantin Ananyev

Wile keeping backward compatibility for default machine type, tune
binary for latest generation of cores to benefit more from them.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---

Cc: Bruce Richardson <bruce.richardson@intel.com>
Cc: Konstantin Ananyev <konstantin.ananyev@intel.com>

v2:
* prevent warning via clang:
  bin/sh: line 0: test: -ge: unary operator expected

v3:
* add missing RFC tag to the patch title
---
 mk/machine/default/rte.vars.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mk/machine/default/rte.vars.mk b/mk/machine/default/rte.vars.mk
index 71a25bcae..914964302 100644
--- a/mk/machine/default/rte.vars.mk
+++ b/mk/machine/default/rte.vars.mk
@@ -56,3 +56,9 @@
 # CPU_ASFLAGS =
 
 MACHINE_CFLAGS += -march=corei7
+
+-include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk
+
+ifeq ($(shell test -n "$(GCC_VERSION)" && test $(GCC_VERSION) -ge 49 && echo 1), 1)
+MACHINE_CFLAGS += -mtune=intel
+endif
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-16  1:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 23:28 [RFC] mk: add tuning for default machine type Ferruh Yigit
2017-12-16  1:48 ` [PATCH v2] " Ferruh Yigit
2017-12-16  1:50   ` [RFC v3] " Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.