mk: add tuning for default machine type
RFC 1/1 mk: add tuning for default machine type
Wile keeping backward compatibility for default machine type, tune binary for latest generation of cores to benefit more from them.
---
--- mk/machine/default/rte.vars.mk | 6 ++++++ 1 file changed, 6 insertions(+)
mk/machine/default/rte.vars.mk +6 -0
@@ -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
Signature · 1 line
2.14.3
PATCH v2 1/1 mk: add tuning for default machine type
Wile keeping backward compatibility for default machine type, tune binary for latest generation of cores to benefit more from them.
---
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(+)
mk/machine/default/rte.vars.mk +6 -0
@@ -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
Signature · 1 line
2.14.3
RFC v3 1/1 mk: add tuning for default machine type
Wile keeping backward compatibility for default machine type, tune binary for latest generation of cores to benefit more from them.
---
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(+)
mk/machine/default/rte.vars.mk +6 -0
@@ -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
Signature · 1 line
2.14.3