build: remove support for icc compiler
Subsystems (2)
PATCH 1/1 build: remove support for icc compiler
The Intel-produced compiler "icc" has been replaced by the newer clang-based "icx" compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it.
--- app/test/test_pie.c | 5 ----- app/test/test_red.c | 5 ----- .../contributing/img/patch_cheatsheet.svg | 2 +- doc/guides/linux_gsg/sys_reqs.rst | 3 --- doc/guides/nics/enic.rst | 2 +- doc/guides/nics/hinic.rst | 1 - doc/guides/nics/hns3.rst | 1 - doc/guides/nics/ngbe.rst | 1 - doc/guides/nics/txgbe.rst | 1 - doc/guides/prog_guide/lto.rst | 2 +- .../prog_guide/writing_efficient_code.rst | 2 +- doc/guides/rel_notes/known_issues.rst | 19 ------------------- drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 2 +- drivers/net/virtio/meson.build | 2 -- drivers/net/virtio/virtio_rxtx_packed.h | 5 ----- dts/framework/config/__init__.py | 2 -- dts/framework/testbed_model/posix_session.py | 2 -- lib/eal/include/rte_common.h | 6 ++---- lib/eal/x86/include/rte_rtm.h | 2 +- lib/eal/x86/include/rte_vect.h | 13 ------------- lib/sched/rte_pie.c | 4 ---- lib/sched/rte_red.c | 4 ---- lib/sched/rte_sched.c | 5 ----- lib/vhost/meson.build | 2 -- lib/vhost/vhost.h | 5 ----- 25 files changed, 8 insertions(+), 90 deletions(-)
app/test/test_pie.c +0 -5
@@ -41,11 +41,6 @@ test_pie_all(void)#include <rte_pie.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -/**< structures for testing rte_pie performance and function */ struct test_rte_pie_config {/**< Test structure for RTE_PIE config */ struct rte_pie_config *pconfig;/**< RTE_PIE configuration parameters */
app/test/test_red.c +0 -5
@@ -40,11 +40,6 @@ test_red_all(void)#include <rte_red.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -#define TEST_HZ_PER_KHZ 1000#define TEST_NSEC_MARGIN 500/**< nanosecond margin when calculating clk freq */
doc/guides/contributing/img/patch_cheatsheet.svg +1 -1
@@ -718,7 +718,7 @@ style="font-style:normal;font-variant:normal;font-weight:300;font-stretch:normal;font-size:21px;line-height:125%;font-family:monospace;-inkscape-font-specification:'Monospace Bold';text-align:start;writing-mode:lr-tb;text-anchor:start" id="tspan4092-8-7" y="454.36987" - x="49.093246">+ build gcc icc clang </tspan></text> + x="49.093246">+ build gcc clang </tspan></text> <text style="font-style:normal;font-weight:normal;font-size:40px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none" xml:space="preserve"
doc/guides/linux_gsg/sys_reqs.rst +0 -3
@@ -71,9 +71,6 @@ Compilation of the DPDK **Optional Tools:** -* Intel\ |reg| C++ Compiler (icc). For installation, additional libraries may be required. - See the icc Installation Guide found in the Documentation directory under the compiler installation. - * IBM\ |reg| Advance ToolChain for Powerlinux. This is a set of open source development tools and runtime libraries which allows users to take leading edge advantage of IBM's latest POWER hardware features on Linux. To install it, see the IBM official installation document.
doc/guides/nics/enic.rst +1 -1
@@ -378,7 +378,7 @@ AVX2 SIMD instructions. It is meant for bulk, throughput oriented workloads where reducing cycles/packet in PMD is a priority. In order to use the vectorized handler, take the following steps. -- Use a recent version of gcc, icc, or clang and build 64-bit DPDK. If +- Use a recent version of gcc or clang and build 64-bit DPDK. If the compiler is known to support AVX2, DPDK build system automatically compiles the vectorized handler. Otherwise, the handler is not available.
doc/guides/nics/hinic.rst +0 -1
@@ -55,5 +55,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/hns3.rst +0 -1
@@ -451,5 +451,4 @@ sve burst function. When enabling IEEE 1588, Rx/Tx burst mode should be simple or common. It is recommended that enable IEEE 1588 before ethdev start. In this way, the correct Rx/Tx burst function can be selected. -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/ngbe.rst +0 -1
@@ -81,5 +81,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/txgbe.rst +0 -1
@@ -186,5 +186,4 @@ For a detailed usage description please refer to "Traffic Management" section in Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/prog_guide/lto.rst +1 -1
@@ -10,7 +10,7 @@ program" optimization at link time and is available only for compilers that support that feature. To be more specific, compiler (in addition to performing LTO) have to support creation of ELF objects containing both normal code and internal -representation (called fat-lto-objects in gcc and icc). +representation (called fat-lto-objects in gcc). This is required since during build some code is generated by parsing produced ELF objects (pmdinfogen).
doc/guides/prog_guide/writing_efficient_code.rst +1 -1
@@ -247,7 +247,7 @@ However, this technique is not always efficient; it depends on many factors incl Branch Prediction ~~~~~~~~~~~~~~~~~ -The Intel® C/C++ Compiler (icc)/gcc built-in helper functions likely() and unlikely() +The gcc built-in helper functions likely() and unlikely() allow the developer to indicate if a code branch is likely to be taken or not. For instance:
doc/guides/rel_notes/known_issues.rst +0 -19
@@ -422,25 +422,6 @@ Differences in how different Intel NICs handle maximum packet length for jumbo f Poll Mode Driver (PMD). -GCC might generate Intel® AVX instructions for processors without Intel® AVX support ------------------------------------------------------------------------------------- - -**Description**: - When compiling DPDK (and any DPDK app), gcc may generate Intel® AVX instructions, even when the - processor does not support Intel® AVX. - -**Implication**: - Any DPDK app might crash while starting up. - -**Resolution/Workaround**: - Either compile using icc or set ``EXTRA_CFLAGS='-O3'`` prior to compilation. - -**Affected Environment/Platform**: - Platforms which processor does not support Intel® AVX. - -**Driver/Module**: - Environment Abstraction Layer (EAL). - Ethertype filter could receive other packets (non-assigned) in Niantic ----------------------------------------------------------------------
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h +1 -1
@@ -25,7 +25,7 @@#include "mlx5_rxtx_vec.h" #include "mlx5_autoconf.h" -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#pragma GCC diagnostic ignored "-Wstrict-aliasing"#endif
drivers/net/virtio/meson.build +0 -2
@@ -37,8 +37,6 @@ if arch_subdir == 'x86' cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' - elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' endif endif sources += files('virtio_rxtx_simple_sse.c')
drivers/net/virtio/virtio_rxtx_packed.h +0 -5
@@ -77,11 +77,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VIRTIO_ICC_UNROLL_PRAGMA -#define virtio_for_each_try_unroll (iter, val, size) _Pragma("unroll 4") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef virtio_for_each_try_unroll#define virtio_for_each_try_unroll (iter, val, size) \ for (iter = val; iter < size; iter++)
dts/framework/config/__init__.py +0 -2
@@ -116,8 +116,6 @@ class Compiler(StrEnum): #: clang = auto() #: - icc = auto() - #: msvc = auto()
dts/framework/testbed_model/posix_session.py +0 -2
@@ -381,8 +381,6 @@ def get_compiler_version(self, compiler_name: str) -> str: ).stdout.split("\n")[0] case "msvc": return self.send_command("cl", SETTINGS.timeout).stdout - case "icc": - return self.send_command(f"{compiler_name} -V", SETTINGS.timeout).stdout case _: raise ValueError(f"Unknown compiler {compiler_name}")
lib/eal/include/rte_common.h +2 -4
@@ -59,8 +59,6 @@ extern "C" {#define RTE_CC_IS_GNU 0#if defined __clang__#define RTE_CC_CLANG -#elif defined __INTEL_COMPILER -#define RTE_CC_ICC #elif defined __GNUC__#define RTE_CC_GCC #undef RTE_CC_IS_GNU
@@ -160,7 +158,7 @@ typedef uint16_t unaligned_uint16_t;* Macros to cause the compiler to remember the state of the diagnostics as of * each push, and restore to that point at each pop. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_push _Pragma("GCC diagnostic push")#define __rte_diagnostic_pop _Pragma("GCC diagnostic pop")#else
@@ -172,7 +170,7 @@ typedef uint16_t unaligned_uint16_t;* Macro to disable compiler warnings about removing a type * qualifier from the target type. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_ignored_wcast_qual _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")#else #define __rte_diagnostic_ignored_wcast_qual
lib/eal/x86/include/rte_rtm.h +1 -1
@@ -7,7 +7,7 @@#include <immintrin.h> -/* Official RTM intrinsics interface matching gcc/icc, but works +/* Official RTM intrinsics interface matching gcc, but works on older gcc compatible compilers and binutils. */ #include <rte_common.h>
lib/eal/x86/include/rte_vect.h +0 -13
@@ -74,19 +74,6 @@ __extension__ ({ \ })#endif -/* -* Prior to version 12.1 icc doesn't support _mm_set_epi64x. -*/ -#if (defined(__ICC) && __ICC <1210 ) -#define _mm_set_epi64x (a, b) \ -__extension__ ({ \ - rte_xmm_t m; \ - m.u64[0] = b; \ - m.u64[1] = a; \ - (m.x); \ -}) -#endif /* (defined(__ICC) && __ICC < 1210) */ -#ifdef __AVX512F__#define RTE_X86_ZMM_SIZE (sizeof(__m512i))
lib/sched/rte_pie.c +0 -4
@@ -9,10 +9,6 @@#include "rte_sched_log.h" #include "rte_pie.h" -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -int rte_pie_rt_data_init (struct rte_pie *pie) {
lib/sched/rte_red.c +0 -4
@@ -7,10 +7,6 @@#include <rte_random.h> #include <rte_common.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -static int rte_red_init_done =0 ;/**< Flag to indicate that global initialisation is done */ uint32_t rte_red_rand_val =0 ;/**< Random value cache */ uint32_t rte_red_rand_seed =0 ;/**< Seed for random number generation */
lib/sched/rte_sched.c +0 -5
@@ -22,11 +22,6 @@#include "rte_approx.h" - -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -#ifndef RTE_SCHED_PORT_N_GRINDERS #define RTE_SCHED_PORT_N_GRINDERS 8#endif
lib/vhost/meson.build +0 -2
@@ -12,8 +12,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) cflags += '-DVHOST_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' -elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVHOST_ICC_UNROLL_PRAGMA' endif dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', cc.has_header('linux/userfaultfd.h')) cflags += [
lib/vhost/vhost.h +0 -5
@@ -79,11 +79,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VHOST_ICC_UNROLL_PRAGMA -#define vhost_for_each_try_unroll (iter, val, size) _Pragma("unroll (4)") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef vhost_for_each_try_unroll#define vhost_for_each_try_unroll (iter, val, num) \ for (iter = val; iter < num; iter++)
Signature · 1 line
2.43.0
Quoted 6 lines · On Wed, 5 Feb 2025 16:18:19 +0000 Bruce Richardson…
The Intel-produced compiler "icc" has been replaced by the newer clang-based "icx" compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it.
Signed-off-by Bruce Richardson <[email protected]>
Probably should add a release note for this. But overall looks like a great idea.
Quoted 7 lines · Bruce Richardson
The Intel-produced compiler "icc" has been replaced by the newer clang-based "icx" compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it.
Signed-off-by Bruce Richardson <[email protected]>
I noticed remaining references, from which some can be cleaned up too:
app/test-pmd/testpmd.h: * Work-around of a compilation error with ICC on invocations of the
lib/eal/common/eal_common_dynmem.c: /* to prevent
icc errors */
lib/eal/x86/include/rte_vect.h:#if defined(__ICC) || defined(_WIN64)
buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc
And please add a release note update.
Thanks.
Signature · 1 line
David Marchand
Quoted 8 lines · David Marchand
Quoted 6 lines · Bruce Richardson
The Intel-produced compiler "icc" has been replaced by the newer clang-based "icx" compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it.
Quoted 7 lines
Quoted 1 line
Signed-off-by Bruce Richardson <[email protected]>I noticed remaining references, from which some can be cleaned up too:
app/test-pmd/testpmd.h: * Work-around of a compilation error with ICC on invocations of the
Yes, I spotted this and a few of the others too - but forgot to reference them in the commit log ntoes.
The trouble is that for a number of these cases I've no idea what specific part of the code the workaround is, or what it should look like without the workaround.
For this specific instance, the ifdefs in the testpmd.h file just refer to GCC and non-GCC (presumably including clang), so it doesn't seem that there is code that is ICC specific. Shall I just remove the comment?
Quoted 2 lines
lib/eal/common/eal_common_dynmem.c: /* to prevent
icc errors */
Same here. It's not clear to me what way the code should be reworked if not supporting ICC. Again, I can just remove the comment and be done with it.
Quoted 2 lines
lib/eal/x86/include/rte_vect.h:#if
defined(__ICC)||defined(_WIN64)
This seems as miss on my part. Will fix in a v2.
Quoted 3 lines
buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc
This you may be able to advise me on. I assume that the icc-specific bit is just he "&& !($NF ~ /\.$/)" bit, and not the whole block the comment is put on?
Quoted 2 lines
And please add a release note update.
Yes.
I've also been testing with the newer "icx" and will probably add something in the docs about it working ok as a replacement.
/Bruce
Quoted 39 lines · Bruce Richardson
Quoted 8 lines · David Marchand
Quoted 6 lines · Bruce Richardson
The Intel-produced compiler "icc" has been replaced by the newer clang-based "icx" compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it.
Quoted 7 lines
Quoted 1 line
Signed-off-by Bruce Richardson <[email protected]>I noticed remaining references, from which some can be cleaned up too:
app/test-pmd/testpmd.h: * Work-around of a compilation error with ICC on invocations of theYes, I spotted this and a few of the others too - but forgot to reference them in the commit log ntoes.
The trouble is that for a number of these cases I've no idea what specific part of the code the workaround is, or what it should look like without the workaround.
For this specific instance, the ifdefs in the
testpmd.hfile just refer to GCC and non-GCC (presumably including clang), so it doesn't seem that there is code that is ICC specific. Shall I just remove the comment?Quoted 2 lines
lib/eal/common/eal_common_dynmem.c: /* to prevent
icc errors */Same here. It's not clear to me what way the code should be reworked if not supporting ICC. Again, I can just remove the comment and be done with it.
Quoted 2 lines
lib/eal/x86/include/rte_vect.h:#if
defined(__ICC)||defined(_WIN64)This seems as miss on my part. Will fix in a v2.
Quoted 8 lines
Quoted 3 lines
buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc buildtools/check-symbols.sh:# Filter out symbols suffixed with a . for icc
This you may be able to advise me on. I assume that the icc-specific bit is just he "&& !($NF ~ /\.$/)" bit, and not the whole block the comment is put on?
There is also a reference in ena driver, again, not sure what the correct code replacement is - setting the struct initializer to {0} perhaps? Adding some ena maintainers on CC so they can comment on this.
struct ena_com_create_io_ctx ctx =
/* policy set to _HOST just to satisfy icc compiler */
{ ENA_ADMIN_PLACEMENT_POLICY_HOST,
0, 0, 0, 0, 0 };Ena maintainers - any suggestions on what the code should look like if we no longer have to support the icc compiler?
/Bruce
v2 cover replace icc support with icx
In reply to Bruce RichardsonThe "icc" compiler has been replaced by the newer icx one, so remove references and workarounds for icc in our codebase. Building with icx already works, all-be-it with warnings, so we can just fix the few warnings and report it as supported in our docs in place of icc.
v2:
* include a patch to fix the warnings with icx.
Bruce Richardson (2):
drivers: fix build warnings when using icx
build: replace support for icc with icx
app/test-pmd/testpmd.h | 4 ---- app/test/test_pie.c | 5 ----- app/test/test_red.c | 5 ----- buildtools/check-symbols.sh | 6 ++---- .../contributing/img/patch_cheatsheet.svg | 2 +- doc/guides/linux_gsg/sys_reqs.rst | 3 +-- doc/guides/nics/enic.rst | 2 +- doc/guides/nics/hinic.rst | 1 - doc/guides/nics/hns3.rst | 1 - doc/guides/nics/ngbe.rst | 1 - doc/guides/nics/txgbe.rst | 1 - doc/guides/prog_guide/lto.rst | 2 +- .../prog_guide/writing_efficient_code.rst | 2 +- doc/guides/rel_notes/known_issues.rst | 19 ------------------- doc/guides/rel_notes/release_25_03.rst | 5 +++++ drivers/common/idpf/meson.build | 3 +++ drivers/net/ena/ena_ethdev.c | 1 - drivers/net/intel/i40e/meson.build | 3 +++ drivers/net/intel/iavf/meson.build | 3 +++ drivers/net/intel/ice/meson.build | 3 +++ drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 2 +- drivers/net/virtio/meson.build | 2 -- drivers/net/virtio/virtio_rxtx_packed.h | 5 ----- dts/framework/config/__init__.py | 2 -- dts/framework/testbed_model/posix_session.py | 2 -- lib/eal/common/eal_common_dynmem.c | 1 - lib/eal/include/rte_common.h | 6 ++---- lib/eal/x86/include/rte_rtm.h | 2 +- lib/eal/x86/include/rte_vect.h | 15 +-------------- lib/sched/rte_pie.c | 4 ---- lib/sched/rte_red.c | 4 ---- lib/sched/rte_sched.c | 5 ----- lib/vhost/meson.build | 2 -- lib/vhost/vhost.h | 5 ----- 34 files changed, 29 insertions(+), 100 deletions(-)
--
2.43.0
PATCH v2 1/2 drivers: fix build warnings when using icx
The Intel oneAPI DPC++/C++ Compiler (icx), issues warnings on build when the "-march=native", or other configured global "-march" flag, is overridden to "skylake-avx512", when compiling AVX-512 code.
Allow building with icx with warnings-as-errors flag (werror) enabled by disabling the warning for the cases where we pass that extra "-march" flag.
--- drivers/common/idpf/meson.build | 3 +++ drivers/net/intel/i40e/meson.build | 3 +++ drivers/net/intel/iavf/meson.build | 3 +++ drivers/net/intel/ice/meson.build | 3 +++ 4 files changed, 12 insertions(+)
drivers/common/idpf/meson.build +3 -0
@@ -21,6 +21,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif idpf_common_avx512_lib = static_library('idpf_common_avx512_lib', 'idpf_common_rxtx_avx512.c',
drivers/net/intel/i40e/meson.build +3 -0
@@ -57,6 +57,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif i40e_avx512_lib = static_library('i40e_avx512_lib', 'i40e_rxtx_vec_avx512.c',
drivers/net/intel/iavf/meson.build +3 -0
@@ -40,6 +40,9 @@ if arch_subdir == 'x86' and is_variable('static_rte_common_iavf') avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif iavf_avx512_lib = static_library('iavf_avx512_lib', 'iavf_rxtx_vec_avx512.c',
drivers/net/intel/ice/meson.build +3 -0
@@ -40,6 +40,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif ice_avx512_lib = static_library('ice_avx512_lib', 'ice_rxtx_vec_avx512.c',
Signature · 1 line
2.43.0
RE: [PATCH v2 1/2] drivers: fix build warnings when using icx
Quoted 84 lines
The Intel oneAPI DPC++/C++ Compiler (icx), issues warnings on build when the "-march=native", or other configured global "-march" flag, is overridden to "skylake-avx512", when compiling AVX-512 code.
Allow building with icx with warnings-as-errors flag (werror) enabled by disabling the warning for the cases where we pass that extra "-march" flag.
Fixes e6a6a138919f ("net/i40e: add AVX512 vector path")Fixes 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx")Fixes 7f85d5ebcfe1 ("net/ice: add AVX512 vector path")Fixes 0fac6a1c44d5 ("common/idpf: add AVX512 for single queue model")Signed-off-by Bruce Richardson <[email protected]>--- drivers/common/idpf/meson.build | 3 +++ drivers/net/intel/i40e/meson.build | 3 +++ drivers/net/intel/iavf/meson.build | 3 +++ drivers/net/intel/ice/meson.build | 3 +++ 4 files changed, 12 insertions(+)drivers/common/idpf/meson.build +3
-0@@ -21,6 +21,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif idpf_common_avx512_lib = static_library('idpf_common_avx512_lib', 'idpf_common_rxtx_avx512.c',drivers/net/intel/i40e/meson.build +3
-0@@ -57,6 +57,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif i40e_avx512_lib = static_library('i40e_avx512_lib', 'i40e_rxtx_vec_avx512.c',drivers/net/intel/iavf/meson.build +3
-0@@ -40,6 +40,9 @@ if arch_subdir == 'x86' and is_variable('static_rte_common_iavf') avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif iavf_avx512_lib = static_library('iavf_avx512_lib','iavf_rxtx_vec_avx512.c',drivers/net/intel/ice/meson.build +3
-1@@ -40,6 +40,9 @@ if arch_subdir == 'x86' avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' + if cc.has_argument('-Wno-overriding-option') + avx512_args += '-Wno-overriding-option' + endif endif ice_avx512_lib = static_library('ice_avx512_lib', 'ice_rxtx_vec_avx512.c', --
Quoted 1 line
2.43.0
Tested ok and looks good to me.
PATCH v2 2/2 build: replace support for icc with icx
In reply to Bruce RichardsonThe "Intel C++ Compiler" (icc) has been replaced by the newer clang-based "Intel oneAPI DPC++/C++ Compiler" (icx) compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it. Document instead that icx can be used to compile DPDK.
---
v2:
- remove more references to icc.
- in places where there was a comment indicating there was a workaround for icc, but it wasn't obvious what the workaround was, just remove the comment for now. The code is not broken, and so the workaround remaining is harmless.
Feedback welcome from maintainers on how to correctly remove these workarounds! Will do v3 to fix them properly if feedback received!
--- app/test-pmd/testpmd.h | 4 ---- app/test/test_pie.c | 5 ----- app/test/test_red.c | 5 ----- buildtools/check-symbols.sh | 6 ++---- .../contributing/img/patch_cheatsheet.svg | 2 +- doc/guides/linux_gsg/sys_reqs.rst | 3 +-- doc/guides/nics/enic.rst | 2 +- doc/guides/nics/hinic.rst | 1 - doc/guides/nics/hns3.rst | 1 - doc/guides/nics/ngbe.rst | 1 - doc/guides/nics/txgbe.rst | 1 - doc/guides/prog_guide/lto.rst | 2 +- .../prog_guide/writing_efficient_code.rst | 2 +- doc/guides/rel_notes/known_issues.rst | 19 ------------------- doc/guides/rel_notes/release_25_03.rst | 5 +++++ drivers/net/ena/ena_ethdev.c | 1 - drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 2 +- drivers/net/virtio/meson.build | 2 -- drivers/net/virtio/virtio_rxtx_packed.h | 5 ----- dts/framework/config/__init__.py | 2 -- dts/framework/testbed_model/posix_session.py | 2 -- lib/eal/common/eal_common_dynmem.c | 1 - lib/eal/include/rte_common.h | 6 ++---- lib/eal/x86/include/rte_rtm.h | 2 +- lib/eal/x86/include/rte_vect.h | 15 +-------------- lib/sched/rte_pie.c | 4 ---- lib/sched/rte_red.c | 4 ---- lib/sched/rte_sched.c | 5 ----- lib/vhost/meson.build | 2 -- lib/vhost/vhost.h | 5 ----- 30 files changed, 17 insertions(+), 100 deletions(-)
app/test-pmd/testpmd.h +0 -4
@@ -1292,10 +1292,6 @@ RTE_INIT(__##c) \testpmd_add_driver_commands (&c); \ } -/* -* Work-around of a compilation error with ICC on invocations of the -* rte_be_to_cpu_16() function. -*/ #ifdef __GCC__#define RTE_BE_TO_CPU_16 (be_16_v) rte_be_to_cpu_16((be_16_v))#define RTE_CPU_TO_BE_16 (cpu_16_v) rte_cpu_to_be_16((cpu_16_v))
app/test/test_pie.c +0 -5
@@ -41,11 +41,6 @@ test_pie_all(void)#include <rte_pie.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -/**< structures for testing rte_pie performance and function */ struct test_rte_pie_config {/**< Test structure for RTE_PIE config */ struct rte_pie_config *pconfig;/**< RTE_PIE configuration parameters */
app/test/test_red.c +0 -5
@@ -40,11 +40,6 @@ test_red_all(void)#include <rte_red.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -#define TEST_HZ_PER_KHZ 1000#define TEST_NSEC_MARGIN 500/**< nanosecond margin when calculating clk freq */
buildtools/check-symbols.sh +2 -4
@@ -45,9 +45,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.experimental") { print $NF } }' $DUMPFILE`
@@ -76,9 +75,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.internal" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.internal") { print $NF } }' $DUMPFILE`
doc/guides/contributing/img/patch_cheatsheet.svg +1 -1
@@ -718,7 +718,7 @@ style="font-style:normal;font-variant:normal;font-weight:300;font-stretch:normal;font-size:21px;line-height:125%;font-family:monospace;-inkscape-font-specification:'Monospace Bold';text-align:start;writing-mode:lr-tb;text-anchor:start" id="tspan4092-8-7" y="454.36987" - x="49.093246">+ build gcc icc clang </tspan></text> + x="49.093246">+ build gcc clang </tspan></text> <text style="font-style:normal;font-weight:normal;font-size:40px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none" xml:space="preserve"
doc/guides/linux_gsg/sys_reqs.rst +1 -2
@@ -71,8 +71,7 @@ Compilation of the DPDK **Optional Tools:** -* Intel\ |reg| C++ Compiler (icc). For installation, additional libraries may be required. - See the icc Installation Guide found in the Documentation directory under the compiler installation. +* Intel\ |reg| oneAPI DPC++/C++ Compiler. * IBM\ |reg| Advance ToolChain for Powerlinux. This is a set of open source development tools and runtime libraries which allows users to take leading edge advantage of IBM's latest POWER hardware features on Linux. To install
doc/guides/nics/enic.rst +1 -1
@@ -378,7 +378,7 @@ AVX2 SIMD instructions. It is meant for bulk, throughput oriented workloads where reducing cycles/packet in PMD is a priority. In order to use the vectorized handler, take the following steps. -- Use a recent version of gcc, icc, or clang and build 64-bit DPDK. If +- Use a recent version of gcc or clang and build 64-bit DPDK. If the compiler is known to support AVX2, DPDK build system automatically compiles the vectorized handler. Otherwise, the handler is not available.
doc/guides/nics/hinic.rst +0 -1
@@ -55,5 +55,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/hns3.rst +0 -1
@@ -451,5 +451,4 @@ sve burst function. When enabling IEEE 1588, Rx/Tx burst mode should be simple or common. It is recommended that enable IEEE 1588 before ethdev start. In this way, the correct Rx/Tx burst function can be selected. -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/ngbe.rst +0 -1
@@ -81,5 +81,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/txgbe.rst +0 -1
@@ -186,5 +186,4 @@ For a detailed usage description please refer to "Traffic Management" section in Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/prog_guide/lto.rst +1 -1
@@ -10,7 +10,7 @@ program" optimization at link time and is available only for compilers that support that feature. To be more specific, compiler (in addition to performing LTO) have to support creation of ELF objects containing both normal code and internal -representation (called fat-lto-objects in gcc and icc). +representation (called fat-lto-objects in gcc). This is required since during build some code is generated by parsing produced ELF objects (pmdinfogen).
doc/guides/prog_guide/writing_efficient_code.rst +1 -1
@@ -247,7 +247,7 @@ However, this technique is not always efficient; it depends on many factors incl Branch Prediction ~~~~~~~~~~~~~~~~~ -The Intel® C/C++ Compiler (icc)/gcc built-in helper functions likely() and unlikely() +The gcc built-in helper functions likely() and unlikely() allow the developer to indicate if a code branch is likely to be taken or not. For instance:
doc/guides/rel_notes/known_issues.rst +0 -19
@@ -422,25 +422,6 @@ Differences in how different Intel NICs handle maximum packet length for jumbo f Poll Mode Driver (PMD). -GCC might generate Intel® AVX instructions for processors without Intel® AVX support ------------------------------------------------------------------------------------- - -**Description**: - When compiling DPDK (and any DPDK app), gcc may generate Intel® AVX instructions, even when the - processor does not support Intel® AVX. - -**Implication**: - Any DPDK app might crash while starting up. - -**Resolution/Workaround**: - Either compile using icc or set ``EXTRA_CFLAGS='-O3'`` prior to compilation. - -**Affected Environment/Platform**: - Platforms which processor does not support Intel® AVX. - -**Driver/Module**: - Environment Abstraction Layer (EAL). - Ethertype filter could receive other packets (non-assigned) in Niantic ----------------------------------------------------------------------
doc/guides/rel_notes/release_25_03.rst +5 -0
@@ -106,6 +106,11 @@ Removed Items Also, make sure to start the actual text at the margin. ======================================================= +* **Support for Intel\ |reg| C++ Compiler (icc) (replaced by "icx" support)** + + Support for the older Intel\ |reg| C++ Compiler "icc" has been dropped. + The newer Intel\ |reg| oneAPI DPC++/C++ Compiler, "icx", can be used to compile DPDK instead. + API Changes -----------
drivers/net/ena/ena_ethdev.c +0 -1
@@ -1413,7 +1413,6 @@ static int ena_create_io_queue(struct rte_eth_dev *dev, struct ena_ring *ring)struct rte_pci_device *pci_dev =RTE_ETH_DEV_TO_PCI (dev);struct rte_intr_handle *intr_handle = pci_dev->intr_handle;struct ena_com_create_io_ctx ctx = -/* policy set to _HOST just to satisfy icc compiler */ {ENA_ADMIN_PLACEMENT_POLICY_HOST ,0 ,0 ,0 ,0 ,0 };uint16_t ena_qid;
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h +1 -1
@@ -25,7 +25,7 @@#include "mlx5_rxtx_vec.h" #include "mlx5_autoconf.h" -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#pragma GCC diagnostic ignored "-Wstrict-aliasing"#endif
drivers/net/virtio/meson.build +0 -2
@@ -37,8 +37,6 @@ if arch_subdir == 'x86' cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' - elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' endif endif sources += files('virtio_rxtx_simple_sse.c')
drivers/net/virtio/virtio_rxtx_packed.h +0 -5
@@ -77,11 +77,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VIRTIO_ICC_UNROLL_PRAGMA -#define virtio_for_each_try_unroll (iter, val, size) _Pragma("unroll 4") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef virtio_for_each_try_unroll#define virtio_for_each_try_unroll (iter, val, size) \ for (iter = val; iter < size; iter++)
dts/framework/config/__init__.py +0 -2
@@ -116,8 +116,6 @@ class Compiler(StrEnum): #: clang = auto() #: - icc = auto() - #: msvc = auto()
dts/framework/testbed_model/posix_session.py +0 -2
@@ -381,8 +381,6 @@ def get_compiler_version(self, compiler_name: str) -> str: ).stdout.split("\n")[0] case "msvc": return self.send_command("cl", SETTINGS.timeout).stdout - case "icc": - return self.send_command(f"{compiler_name} -V", SETTINGS.timeout).stdout case _: raise ValueError(f"Unknown compiler {compiler_name}")
lib/eal/common/eal_common_dynmem.c +0 -1
@@ -510,7 +510,6 @@ eal_dynmem_calc_num_pages_per_socket(/* if we didn't satisfy all memory requirements per socket */ if (memory[socket] >0 && internal_conf->socket_mem[socket] !=0 ) { -/* to prevent icc errors */ requested = (unsigned int )( internal_conf->socket_mem[socket] /0x100000 ); available = requested -
lib/eal/include/rte_common.h +2 -4
@@ -59,8 +59,6 @@ extern "C" {#define RTE_CC_IS_GNU 0#if defined __clang__#define RTE_CC_CLANG -#elif defined __INTEL_COMPILER -#define RTE_CC_ICC #elif defined __GNUC__#define RTE_CC_GCC #undef RTE_CC_IS_GNU
@@ -160,7 +158,7 @@ typedef uint16_t unaligned_uint16_t;* Macros to cause the compiler to remember the state of the diagnostics as of * each push, and restore to that point at each pop. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_push _Pragma("GCC diagnostic push")#define __rte_diagnostic_pop _Pragma("GCC diagnostic pop")#else
@@ -172,7 +170,7 @@ typedef uint16_t unaligned_uint16_t;* Macro to disable compiler warnings about removing a type * qualifier from the target type. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_ignored_wcast_qual _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")#else #define __rte_diagnostic_ignored_wcast_qual
lib/eal/x86/include/rte_rtm.h +1 -1
@@ -7,7 +7,7 @@#include <immintrin.h> -/* Official RTM intrinsics interface matching gcc/icc, but works +/* Official RTM intrinsics interface matching gcc, but works on older gcc compatible compilers and binutils. */ #include <rte_common.h>
lib/eal/x86/include/rte_vect.h +1 -14
@@ -17,7 +17,7 @@#include <rte_common.h> #include "generic/rte_vect.h" -#if defined(__ICC) || defined(_WIN64) +#if defined(_WIN64)#include <smmintrin.h> /* SSE4 */ #include <immintrin.h> #else
@@ -74,19 +74,6 @@ __extension__ ({ \ })#endif -/* -* Prior to version 12.1 icc doesn't support _mm_set_epi64x. -*/ -#if (defined(__ICC) && __ICC <1210 ) -#define _mm_set_epi64x (a, b) \ -__extension__ ({ \ - rte_xmm_t m; \ - m.u64[0] = b; \ - m.u64[1] = a; \ - (m.x); \ -}) -#endif /* (defined(__ICC) && __ICC < 1210) */ -#ifdef __AVX512F__#define RTE_X86_ZMM_SIZE (sizeof(__m512i))
lib/sched/rte_pie.c +0 -4
@@ -9,10 +9,6 @@#include "rte_sched_log.h" #include "rte_pie.h" -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -int rte_pie_rt_data_init (struct rte_pie *pie) {
lib/sched/rte_red.c +0 -4
@@ -7,10 +7,6 @@#include <rte_random.h> #include <rte_common.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -static int rte_red_init_done =0 ;/**< Flag to indicate that global initialisation is done */ uint32_t rte_red_rand_val =0 ;/**< Random value cache */ uint32_t rte_red_rand_seed =0 ;/**< Seed for random number generation */
lib/sched/rte_sched.c +0 -5
@@ -22,11 +22,6 @@#include "rte_approx.h" - -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -#ifndef RTE_SCHED_PORT_N_GRINDERS #define RTE_SCHED_PORT_N_GRINDERS 8#endif
lib/vhost/meson.build +0 -2
@@ -12,8 +12,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) cflags += '-DVHOST_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' -elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVHOST_ICC_UNROLL_PRAGMA' endif dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', cc.has_header('linux/userfaultfd.h')) cflags += [
lib/vhost/vhost.h +0 -5
@@ -79,11 +79,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VHOST_ICC_UNROLL_PRAGMA -#define vhost_for_each_try_unroll (iter, val, size) _Pragma("unroll (4)") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef vhost_for_each_try_unroll#define vhost_for_each_try_unroll (iter, val, num) \ for (iter = val; iter < num; iter++)
--
2.43.0
Re: [PATCH v2 2/2] build: replace support for icc with icx
Quoted 5 lines · Bruce Richardson
app/test-pmd/testpmd.h +0
-0
app/test-pmd/testpmd.h RTE_INIT(__##c) \ · line 1297
Quoted 10 lines
app/test-pmd/testpmd.h +0
-4@@ -1292,10 +1292,6 @@ RTE_INIT(__##c) \testpmd_add_driver_commands (&c); \ } -/* -* Work-around of a compilation error with ICC on invocations of the -* rte_be_to_cpu_16() function. -*/ #ifdef __GCC__#define RTE_BE_TO_CPU_16 (be_16_v) rte_be_to_cpu_16((be_16_v))#define RTE_CPU_TO_BE_16 (cpu_16_v) rte_cpu_to_be_16((cpu_16_v))
You may entirely drop those RTE_BE_TO_CPU_16 macros and just rely on rte_be_to_cpu_16.
Quoted 16 lines
buildtools/check-symbols.sh +1
-2@@ -45,9 +45,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.experimental") { print $NF } }' $DUMPFILE`
buildtools/check-symbols.sh do · line 82
Quoted 10 lines
buildtools/check-symbols.sh +1
-2@@ -76,9 +75,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.internal" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.internal") { print $NF } }' $DUMPFILE`
LGTM, this is what I had in mind too.
Quoted 7 lines
API Changes
-----------drivers/net/ena/ena_ethdev.c +0
-0
drivers/net/ena/ena_ethdev.c static int ena_create_io_queue(struct rte_eth_dev *dev, struct ena_ring *ring) · line 1418
Quoted 7 lines
drivers/net/ena/ena_ethdev.c +0
-1@@ -1413,7 +1413,6 @@ static int ena_create_io_queue(struct rte_eth_dev *dev, struct ena_ring *ring)struct rte_pci_device *pci_dev =RTE_ETH_DEV_TO_PCI (dev);struct rte_intr_handle *intr_handle = pci_dev->intr_handle;struct ena_com_create_io_ctx ctx = -/* policy set to _HOST just to satisfy icc compiler */ {ENA_ADMIN_PLACEMENT_POLICY_HOST ,0 ,0 ,0 ,0 ,0 };uint16_t ena_qid;
No clue what this was about..
Looking at git history, it looks like something that got copy/pasted over time...
I guess we can simply drop it.
lib/eal/common/eal_common_dynmem.c eal_dynmem_calc_num_pages_per_socket( · line 514
Quoted 11 lines
lib/eal/common/eal_common_dynmem.c +0
-1@@ -510,7 +510,6 @@ eal_dynmem_calc_num_pages_per_socket(/* if we didn't satisfy all memory requirements per socket */ if (memory[socket] >0 && internal_conf->socket_mem[socket] !=0 ) { -/* to prevent icc errors */ requested = (unsigned int )( internal_conf->socket_mem[socket] /0x100000 );
I suspect those casts on socket_mem[] are unnecessary (and later, in the same file).
Quoted 1 line
lib/eal/common/eal_common_dynmem.c +0
-0available = requested -
Signature · 1 line
David Marchand
RE: [PATCH v2 2/2] build: replace support for icc with icx
In reply to Bruce RichardsonQuoted 562 lines
The "Intel C++ Compiler" (icc) has been replaced by the newer clang-based "Intel oneAPI DPC++/C++ Compiler" (icx) compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it. Document instead that icx can be used to compile DPDK.
Signed-off-by Bruce Richardson <[email protected]>---
v2:
- remove more references to icc.
- in places where there was a comment indicating there was a workaround for icc, but it wasn't obvious what the workaround was, just remove the comment for now. The code is not broken, and so the workaround remaining is harmless.Feedback welcome from maintainers on how to correctly remove these workarounds! Will do v3 to fix them properly if feedback received!
--- app/test-pmd/testpmd.h | 4 ---- app/test/test_pie.c | 5 ----- app/test/test_red.c | 5 ----- buildtools/check-symbols.sh | 6 ++---- .../contributing/img/patch_cheatsheet.svg | 2 +- doc/guides/linux_gsg/sys_reqs.rst | 3 +-- doc/guides/nics/enic.rst | 2 +- doc/guides/nics/hinic.rst | 1 - doc/guides/nics/hns3.rst | 1 - doc/guides/nics/ngbe.rst | 1 - doc/guides/nics/txgbe.rst | 1 - doc/guides/prog_guide/lto.rst | 2 +- .../prog_guide/writing_efficient_code.rst | 2 +- doc/guides/rel_notes/known_issues.rst | 19 ------------------- doc/guides/rel_notes/release_25_03.rst | 5 +++++ drivers/net/ena/ena_ethdev.c | 1 - drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 2 +- drivers/net/virtio/meson.build | 2 -- drivers/net/virtio/virtio_rxtx_packed.h | 5 ----- dts/framework/config/__init__.py | 2 -- dts/framework/testbed_model/posix_session.py | 2 -- lib/eal/common/eal_common_dynmem.c | 1 - lib/eal/include/rte_common.h | 6 ++---- lib/eal/x86/include/rte_rtm.h | 2 +- lib/eal/x86/include/rte_vect.h | 15 +-------------- lib/sched/rte_pie.c | 4 ---- lib/sched/rte_red.c | 4 ---- lib/sched/rte_sched.c | 5 ----- lib/vhost/meson.build | 2 -- lib/vhost/vhost.h | 5 ----- 30 files changed, 17 insertions(+), 100 deletions(-)app/test-pmd/testpmd.h +0
-4@@ -1292,10 +1292,6 @@ RTE_INIT(__##c) \testpmd_add_driver_commands (&c); \ } -/* -* Work-around of a compilation error with ICC on invocations of the -* rte_be_to_cpu_16() function. -*/ #ifdef __GCC__#define RTE_BE_TO_CPU_16 (be_16_v) rte_be_to_cpu_16((be_16_v))#define RTE_CPU_TO_BE_16 (cpu_16_v) rte_cpu_to_be_16((cpu_16_v))app/test/test_pie.c +0
-5@@ -41,11 +41,6 @@ test_pie_all(void)#include <rte_pie.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -/**< structures for testing rte_pie performance and function */ struct test_rte_pie_config {/**< Test structure for RTE_PIE config */ struct rte_pie_config *pconfig;/**< RTE_PIE configuration parameters */
app/test/test_red.c +0
-5@@ -40,11 +40,6 @@ test_red_all(void)#include <rte_red.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -#define TEST_HZ_PER_KHZ 1000#define TEST_NSEC_MARGIN 500/**< nanosecond margin when calculating clk freq */
buildtools/check-symbols.sh +2
-4@@ -45,9 +45,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.experimental") { print $NF } }' $DUMPFILE`@@ -76,9 +75,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.internal" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.internal") { print $NF } }' $DUMPFILE`doc/guides/contributing/img/patch_cheatsheet.svg +0
-0@@ -718,7 +718,7 @@ style="font-style:normal;font-variant:normal;font-weight:300;font-stretch:normal;font-size:21px;line-height:125%;font-family:monospace;- inkscape-font-specification:'Monospace Bold';text-align:start;writing-mode:lr- tb;text-anchor:start"
id="tspan4092-8-7" y="454.36987"doc/guides/contributing/img/patch_cheatsheet.svg +1
-1- x="49.093246">+ build gcc icc clang </tspan></text> + x="49.093246">+ build gcc clang </tspan></text> <text style="font-style:normal;font-weight:normal;font-size:40px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word- spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
xml:space="preserve"doc/guides/linux_gsg/sys_reqs.rst +0
-1@@ -71,8 +71,7 @@ Compilation of the DPDK **Optional Tools:** -* Intel\ |reg| C++ Compiler (icc). For installation, additional libraries may berequired.
- See the icc Installation Guide found in the Documentation directory under
the compiler installation.
+* Intel\ |reg| oneAPI DPC++/C++ Compiler.* IBM\ |reg| Advance ToolChain for Powerlinux. This is a set of open source
development tools and runtime libraries
which allows users to take leading edge advantage of IBM's latest POWER
hardware features on Linux. To installdoc/guides/nics/enic.rst +0
-0@@ -378,7 +378,7 @@ AVX2 SIMD instructions. It is meant for bulk,throughput oriented workloads
where reducing cycles/packet in PMD is a priority. In order to use the vectorized handler, take the following steps.-- Use a recent version of gcc, icc, or clang and build 64-bit DPDK. If +- Use a recent version of gcc or clang and build 64-bit DPDK. If
the compiler is known to support AVX2, DPDK build system automatically compiles the vectorized handler. Otherwise, the handler is not available.doc/guides/nics/hinic.rst +0
-1@@ -55,5 +55,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.doc/guides/nics/hns3.rst +0
-0@@ -451,5 +451,4 @@ sve burst function. When enabling IEEE 1588, Rx/Txburst mode should be
simple or common. It is recommended that enable IEEE 1588 before ethdev start. In this way, the correct Rx/Tx burst function can be selected.doc/guides/nics/hns3.rst +0
-1-Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.doc/guides/nics/ngbe.rst +0
-1@@ -81,5 +81,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.doc/guides/nics/txgbe.rst +0
-0@@ -186,5 +186,4 @@ For a detailed usage description please refer to "TrafficManagement" section in
Limitations or Known issues
---------------------------doc/guides/nics/txgbe.rst +0
-1-Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.doc/guides/prog_guide/lto.rst +0
-0@@ -10,7 +10,7 @@ program" optimization at link time and is available onlyfor compilers
that support that feature.
To be more specific, compiler (in addition to performing LTO) have to support creation of ELF objects containing both normal code and internaldoc/guides/prog_guide/lto.rst +1
-1-representation (called fat-lto-objects in gcc and icc). +representation (called fat-lto-objects in gcc). This is required since during build some code is generated by parsing produced ELF objects (pmdinfogen).doc/guides/prog_guide/writing_efficient_code.rst +0
-0@@ -247,7 +247,7 @@ However, this technique is not always efficient; itdepends on many factors incl
Branch Prediction
~~~~~~~~~~~~~~~~~-The Intel® C/C++ Compiler (icc)/gcc built-in helper functions
likely()andunlikely()doc/guides/prog_guide/writing_efficient_code.rst +1
-0+The gcc built-in helper functions likely() and unlikely() allow the developer to indicate if a code branch is likely to be taken or not. For instance:doc/guides/rel_notes/known_issues.rst +0
-0@@ -422,25 +422,6 @@ Differences in how different Intel NICs handlemaximum packet length for jumbo f
Poll Mode Driver (PMD).-GCC might generate Intel® AVX instructions for processors without Intel® AVX support
-------------------------------------------------------------------------------------doc/guides/rel_notes/known_issues.rst +0
-3- -**Description**: - When compiling DPDK (and any DPDK app), gcc may generate Intel® AVXinstructions, even when the
doc/guides/rel_notes/known_issues.rst +0
-14- processor does not support Intel® AVX. - -**Implication**: - Any DPDK app might crash while starting up. - -**Resolution/Workaround**: - Either compile using icc or set ``EXTRA_CFLAGS='-O3'`` prior to compilation. - -**Affected Environment/Platform**: - Platforms which processor does not support Intel® AVX. - -**Driver/Module**: - Environment Abstraction Layer (EAL). - Ethertype filter could receive other packets (non-assigned) in Niantic ----------------------------------------------------------------------doc/guides/rel_notes/release_25_03.rst +4
-0@@ -106,6 +106,11 @@ Removed Items Also, make sure to start the actual text at the margin. ======================================================= +* **Support for Intel\ |reg| C++ Compiler (icc) (replaced by "icx" support)** + + Support for the older Intel\ |reg| C++ Compiler "icc" has been dropped. + The newer Intel\ |reg| oneAPI DPC++/C++ Compiler, "icx", can be used tocompile DPDK instead.
doc/guides/rel_notes/release_25_03.rst +1
-0+ API Changes -----------drivers/net/ena/ena_ethdev.c +0
-1@@ -1413,7 +1413,6 @@ static int ena_create_io_queue(struct rte_eth_dev *dev, struct ena_ring *ring)struct rte_pci_device *pci_dev =RTE_ETH_DEV_TO_PCI (dev);struct rte_intr_handle *intr_handle = pci_dev->intr_handle;struct ena_com_create_io_ctx ctx = -/* policy set to _HOST just to satisfy icc compiler */ {ENA_ADMIN_PLACEMENT_POLICY_HOST ,0 ,0 ,0 ,0 ,0 };drivers/net/ena/ena_ethdev.c +0
-0uint16_t ena_qid;drivers/net/mlx5/mlx5_rxtx_vec_altivec.h +1
-1@@ -25,7 +25,7 @@#include "mlx5_rxtx_vec.h" #include "mlx5_autoconf.h" -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#pragma GCC diagnostic ignored "-Wstrict-aliasing"#endif drivers/net/virtio/meson.build +0
-2@@ -37,8 +37,6 @@ if arch_subdir == 'x86' cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' - elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' endif endif sources += files('virtio_rxtx_simple_sse.c')drivers/net/virtio/virtio_rxtx_packed.h +0
-5@@ -77,11 +77,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VIRTIO_ICC_UNROLL_PRAGMA -#define virtio_for_each_try_unroll (iter, val, size) _Pragma("unroll 4") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef virtio_for_each_try_unroll#define virtio_for_each_try_unroll (iter, val, size) \ for (iter = val; iter < size; iter++)dts/framework/config/__init__.py +0
-2@@ -116,8 +116,6 @@ class Compiler(StrEnum): #: clang = auto() #: - icc = auto() - #: msvc = auto()dts/framework/testbed_model/posix_session.py +0
-0@@ -381,8 +381,6 @@ def get_compiler_version(self, compiler_name: str) ->str:
).stdout.split("\n")[0]
case "msvc":
returnself.send_command("cl", SETTINGS.timeout).stdoutdts/framework/testbed_model/posix_session.py +0
-2- case "icc": - return self.send_command(f"{compiler_name} -V",SETTINGS.timeout).stdout
case _:
raiseValueError(f"Unknown compiler {compiler_name}")lib/eal/common/eal_common_dynmem.c +0
-1@@ -510,7 +510,6 @@ eal_dynmem_calc_num_pages_per_socket(/* if we didn't satisfy all memory requirements per socket */ if (memory[socket] >0 && internal_conf->socket_mem[socket] !=0 ) { -/* to prevent icc errors */ requested = (unsigned int )( internal_conf->socket_mem[socket] /0x100000 );lib/eal/common/eal_common_dynmem.c +0
-0available = requested -lib/eal/include/rte_common.h +0
-2@@ -59,8 +59,6 @@ extern "C" {#define RTE_CC_IS_GNU 0#if defined __clang__#define RTE_CC_CLANG -#elif defined __INTEL_COMPILER -#define RTE_CC_ICC #elif defined __GNUC__#define RTE_CC_GCC #undef RTE_CC_IS_GNU@@ -160,7 +158,7 @@ typedef uint16_t unaligned_uint16_t;* Macros to cause the compiler to remember the state of the diagnostics as of
* each push, and restore to that point at each pop. */lib/eal/include/rte_common.h +2
-2-#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_push _Pragma("GCC diagnostic push")#define __rte_diagnostic_pop _Pragma("GCC diagnostic pop")#else @@ -172,7 +170,7 @@ typedef uint16_t unaligned_uint16_t;* Macro to disable compiler warnings about removing a type * qualifier from the target type. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_ignored_wcast_qual _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")#else #define
__rte_diagnostic_ignored_wcast_quallib/eal/x86/include/rte_rtm.h +1
-1@@ -7,7 +7,7 @@#include <immintrin.h> -/* Official RTM intrinsics interface matching gcc/icc, but works +/* Official RTM intrinsics interface matching gcc, but works on older gcc compatible compilers and binutils. */ #include <rte_common.h> lib/eal/x86/include/rte_vect.h +1
-14@@ -17,7 +17,7 @@#include <rte_common.h> #include "generic/rte_vect.h" -#if defined(__ICC) || defined(_WIN64) +#if defined(_WIN64)#include <smmintrin.h> /* SSE4 */ #include <immintrin.h> #else @@ -74,19 +74,6 @@ __extension__ ({ \ })#endif -/* -* Prior to version 12.1 icc doesn't support _mm_set_epi64x. -*/ -#if (defined(__ICC) && __ICC <1210 ) -#define _mm_set_epi64x (a, b) \ -__extension__ ({ \ - rte_xmm_t m; \ - m.u64[0] = b; \ - m.u64[1] = a; \ - (m.x); \ -}) -#endif /* (defined(__ICC) && __ICC < 1210) */ -#ifdef __AVX512F__#define RTE_X86_ZMM_SIZE (sizeof(__m512i))lib/sched/rte_pie.c +0
-4@@ -9,10 +9,6 @@#include "rte_sched_log.h" #include "rte_pie.h" -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -int rte_pie_rt_data_init (struct rte_pie *pie) {lib/sched/rte_red.c +0
-4@@ -7,10 +7,6 @@#include <rte_random.h> #include <rte_common.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -static int rte_red_init_done =0 ;/**< Flag to indicate that global initialisation is done */
uint32_trte_red_rand_val= 0; /**< Random value cache */
uint32_trte_red_rand_seed= 0; /**< Seed for random number generation
*/lib/sched/rte_sched.c +0
-5@@ -22,11 +22,6 @@#include "rte_approx.h" - -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -#ifndef RTE_SCHED_PORT_N_GRINDERS #define RTE_SCHED_PORT_N_GRINDERS 8#endif lib/vhost/meson.build +0
-2@@ -12,8 +12,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) cflags += '-DVHOST_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' -elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVHOST_ICC_UNROLL_PRAGMA' endif dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY',
cc.has_header('linux/userfaultfd.h'))
cflags += [lib/vhost/vhost.h +0
-6@@ -79,11 +79,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VHOST_ICC_UNROLL_PRAGMA -#define vhost_for_each_try_unroll (iter, val, size) _Pragma("unroll (4)") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef vhost_for_each_try_unroll#define vhost_for_each_try_unroll (iter, val, num) \ for (iter = val; iter < num; iter++) --
Quoted 1 line
2.43.0
Seems good to me. I saw David has some separate feedback but I don’t have any significant changes for a v3.
PATCH v3 1/1 build: replace support for icc with icx
In reply to Bruce RichardsonThe "Intel C++ Compiler" (icc) has been replaced by the newer clang-based "Intel oneAPI DPC++/C++ Compiler" (icx) compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it. Document instead that icx can be used to compile DPDK.
---
v3:
* separated out the icx build fixes, to revert to single-patch set. Due to potential conflicts depending on order of apply of patches, I will send these out separately to be applied to next-net-intel tree rather than main tree.
* more changes following feedback from David:
- removed cpu-endianness macros in testpmd
- removed unnecessary typecasts (and fixed line-break in err msg)
v2:
* included patch to fix icx warnings
* removed more references to icc and workarounds
--- app/test-pmd/testpmd.h | 16 ---------------- app/test/test_pie.c | 5 ----- app/test/test_red.c | 5 ----- buildtools/check-symbols.sh | 6 ++---- .../contributing/img/patch_cheatsheet.svg | 2 +- doc/guides/linux_gsg/sys_reqs.rst | 3 +-- doc/guides/nics/enic.rst | 2 +- doc/guides/nics/hinic.rst | 1 - doc/guides/nics/hns3.rst | 1 - doc/guides/nics/ngbe.rst | 1 - doc/guides/nics/txgbe.rst | 1 - doc/guides/prog_guide/lto.rst | 2 +- .../prog_guide/writing_efficient_code.rst | 2 +- doc/guides/rel_notes/known_issues.rst | 19 ------------------- doc/guides/rel_notes/release_25_03.rst | 5 +++++ drivers/net/ena/ena_ethdev.c | 1 - drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 2 +- drivers/net/virtio/meson.build | 2 -- drivers/net/virtio/virtio_rxtx_packed.h | 5 ----- dts/framework/testbed_model/posix_session.py | 2 -- lib/eal/common/eal_common_dynmem.c | 17 ++++++----------- lib/eal/include/rte_common.h | 6 ++---- lib/eal/x86/include/rte_rtm.h | 2 +- lib/eal/x86/include/rte_vect.h | 15 +-------------- lib/sched/rte_pie.c | 4 ---- lib/sched/rte_red.c | 4 ---- lib/sched/rte_sched.c | 5 ----- lib/vhost/meson.build | 2 -- lib/vhost/vhost.h | 5 ----- 29 files changed, 23 insertions(+), 120 deletions(-)
app/test-pmd/testpmd.h +0 -16
@@ -1292,24 +1292,8 @@ RTE_INIT(__##c) \testpmd_add_driver_commands (&c); \ } -/* -* Work-around of a compilation error with ICC on invocations of the -* rte_be_to_cpu_16() function. -*/ -#ifdef __GCC__#define RTE_BE_TO_CPU_16 (be_16_v) rte_be_to_cpu_16((be_16_v))#define RTE_CPU_TO_BE_16 (cpu_16_v) rte_cpu_to_be_16((cpu_16_v)) -#else -#if RTE_BYTE_ORDER ==RTE_BIG_ENDIAN -#define RTE_BE_TO_CPU_16 (be_16_v) (be_16_v) -#define RTE_CPU_TO_BE_16 (cpu_16_v) (cpu_16_v) -#else -#define RTE_BE_TO_CPU_16 (be_16_v) \ - (uint16_t) ((((be_16_v) & 0xFF) << 8) | ((be_16_v) >> 8)) -#define RTE_CPU_TO_BE_16 (cpu_16_v) \ - (uint16_t) ((((cpu_16_v) & 0xFF) << 8) | ((cpu_16_v) >> 8)) -#endif -#endif /* __GCC__ */ #define TESTPMD_LOG (level, fmt, ...) \ rte_log(RTE_LOG_ ## level, testpmd_logtype, "testpmd: " fmt, ## __VA_ARGS__)
app/test/test_pie.c +0 -5
@@ -41,11 +41,6 @@ test_pie_all(void)#include <rte_pie.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -/**< structures for testing rte_pie performance and function */ struct test_rte_pie_config {/**< Test structure for RTE_PIE config */ struct rte_pie_config *pconfig;/**< RTE_PIE configuration parameters */
app/test/test_red.c +0 -5
@@ -40,11 +40,6 @@ test_red_all(void)#include <rte_red.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#pragma warning(disable:181)/* Arg incompatible with format string */ -#endif -#define TEST_HZ_PER_KHZ 1000#define TEST_NSEC_MARGIN 500/**< nanosecond margin when calculating clk freq */
buildtools/check-symbols.sh +2 -4
@@ -45,9 +45,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.experimental") { print $NF } }' $DUMPFILE`
@@ -76,9 +75,8 @@ do fi done -# Filter out symbols suffixed with a . for icc for SYM in `awk '{ - if ($2 != "l" && $4 == ".text.internal" && !($NF ~ /\.$/)) { + if ($2 != "l" && $4 == ".text.internal") { print $NF } }' $DUMPFILE`
doc/guides/contributing/img/patch_cheatsheet.svg +1 -1
@@ -718,7 +718,7 @@ style="font-style:normal;font-variant:normal;font-weight:300;font-stretch:normal;font-size:21px;line-height:125%;font-family:monospace;-inkscape-font-specification:'Monospace Bold';text-align:start;writing-mode:lr-tb;text-anchor:start" id="tspan4092-8-7" y="454.36987" - x="49.093246">+ build gcc icc clang </tspan></text> + x="49.093246">+ build gcc clang </tspan></text> <text style="font-style:normal;font-weight:normal;font-size:40px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none" xml:space="preserve"
doc/guides/linux_gsg/sys_reqs.rst +1 -2
@@ -71,8 +71,7 @@ Compilation of the DPDK **Optional Tools:** -* Intel\ |reg| C++ Compiler (icc). For installation, additional libraries may be required. - See the icc Installation Guide found in the Documentation directory under the compiler installation. +* Intel\ |reg| oneAPI DPC++/C++ Compiler. * IBM\ |reg| Advance ToolChain for Powerlinux. This is a set of open source development tools and runtime libraries which allows users to take leading edge advantage of IBM's latest POWER hardware features on Linux. To install
doc/guides/nics/enic.rst +1 -1
@@ -378,7 +378,7 @@ AVX2 SIMD instructions. It is meant for bulk, throughput oriented workloads where reducing cycles/packet in PMD is a priority. In order to use the vectorized handler, take the following steps. -- Use a recent version of gcc, icc, or clang and build 64-bit DPDK. If +- Use a recent version of gcc or clang and build 64-bit DPDK. If the compiler is known to support AVX2, DPDK build system automatically compiles the vectorized handler. Otherwise, the handler is not available.
doc/guides/nics/hinic.rst +0 -1
@@ -55,5 +55,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/hns3.rst +0 -1
@@ -451,5 +451,4 @@ sve burst function. When enabling IEEE 1588, Rx/Tx burst mode should be simple or common. It is recommended that enable IEEE 1588 before ethdev start. In this way, the correct Rx/Tx burst function can be selected. -Build with ICC is not supported yet. X86-32, Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/ngbe.rst +0 -1
@@ -81,5 +81,4 @@ for details. Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/nics/txgbe.rst +0 -1
@@ -186,5 +186,4 @@ For a detailed usage description please refer to "Traffic Management" section in Limitations or Known issues --------------------------- -Build with ICC is not supported yet. Power8, ARMv7 and BSD are not supported yet.
doc/guides/prog_guide/lto.rst +1 -1
@@ -10,7 +10,7 @@ program" optimization at link time and is available only for compilers that support that feature. To be more specific, compiler (in addition to performing LTO) have to support creation of ELF objects containing both normal code and internal -representation (called fat-lto-objects in gcc and icc). +representation (called fat-lto-objects in gcc). This is required since during build some code is generated by parsing produced ELF objects (pmdinfogen).
doc/guides/prog_guide/writing_efficient_code.rst +1 -1
@@ -247,7 +247,7 @@ However, this technique is not always efficient; it depends on many factors incl Branch Prediction ~~~~~~~~~~~~~~~~~ -The Intel® C/C++ Compiler (icc)/gcc built-in helper functions likely() and unlikely() +The gcc built-in helper functions likely() and unlikely() allow the developer to indicate if a code branch is likely to be taken or not. For instance:
doc/guides/rel_notes/known_issues.rst +0 -19
@@ -422,25 +422,6 @@ Differences in how different Intel NICs handle maximum packet length for jumbo f Poll Mode Driver (PMD). -GCC might generate Intel® AVX instructions for processors without Intel® AVX support ------------------------------------------------------------------------------------- - -**Description**: - When compiling DPDK (and any DPDK app), gcc may generate Intel® AVX instructions, even when the - processor does not support Intel® AVX. - -**Implication**: - Any DPDK app might crash while starting up. - -**Resolution/Workaround**: - Either compile using icc or set ``EXTRA_CFLAGS='-O3'`` prior to compilation. - -**Affected Environment/Platform**: - Platforms which processor does not support Intel® AVX. - -**Driver/Module**: - Environment Abstraction Layer (EAL). - Ethertype filter could receive other packets (non-assigned) in Niantic ----------------------------------------------------------------------
doc/guides/rel_notes/release_25_03.rst +5 -0
@@ -135,6 +135,11 @@ Removed Items Also, make sure to start the actual text at the margin. ======================================================= +* **Support for Intel\ |reg| C++ Compiler (icc) (replaced by "icx" support)** + + Support for the older Intel\ |reg| C++ Compiler "icc" has been dropped. + The newer Intel\ |reg| oneAPI DPC++/C++ Compiler, "icx", can be used to compile DPDK instead. + API Changes -----------
drivers/net/ena/ena_ethdev.c +0 -1
@@ -1413,7 +1413,6 @@ static int ena_create_io_queue(struct rte_eth_dev *dev, struct ena_ring *ring)struct rte_pci_device *pci_dev =RTE_ETH_DEV_TO_PCI (dev);struct rte_intr_handle *intr_handle = pci_dev->intr_handle;struct ena_com_create_io_ctx ctx = -/* policy set to _HOST just to satisfy icc compiler */ {ENA_ADMIN_PLACEMENT_POLICY_HOST ,0 ,0 ,0 ,0 ,0 };uint16_t ena_qid;
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h +1 -1
@@ -25,7 +25,7 @@#include "mlx5_rxtx_vec.h" #include "mlx5_autoconf.h" -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#pragma GCC diagnostic ignored "-Wstrict-aliasing"#endif
drivers/net/virtio/meson.build +0 -2
@@ -39,8 +39,6 @@ if arch_subdir == 'x86' cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' - elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' endif endif sources += files('virtio_rxtx_simple_sse.c')
drivers/net/virtio/virtio_rxtx_packed.h +0 -5
@@ -77,11 +77,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VIRTIO_ICC_UNROLL_PRAGMA -#define virtio_for_each_try_unroll (iter, val, size) _Pragma("unroll 4") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef virtio_for_each_try_unroll#define virtio_for_each_try_unroll (iter, val, size) \ for (iter = val; iter < size; iter++)
dts/framework/testbed_model/posix_session.py +0 -2
@@ -391,8 +391,6 @@ def get_compiler_version(self, compiler_name: str) -> str: ).stdout.split("\n")[0] case "msvc": return self.send_command("cl", SETTINGS.timeout).stdout - case "icc": - return self.send_command(f"{compiler_name} -V", SETTINGS.timeout).stdout case _: raise ValueError(f"Unknown compiler {compiler_name}")
lib/eal/common/eal_common_dynmem.c +6 -11
@@ -510,13 +510,9 @@ eal_dynmem_calc_num_pages_per_socket(/* if we didn't satisfy all memory requirements per socket */ if (memory[socket] >0 && internal_conf->socket_mem[socket] !=0 ) { -/* to prevent icc errors */ - requested = (unsigned int )( - internal_conf->socket_mem[socket] /0x100000 ); - available = requested - - ((unsigned int )(memory[socket] /0x100000 )); -EAL_LOG (ERR ,"Not enough memory available on " -"socket %u! Requested: %uMB, available: %uMB" , + requested = internal_conf->socket_mem[socket] /0x100000 ; + available = requested - (memory[socket] /0x100000 ); +EAL_LOG (ERR ,"Not enough memory available on socket %u! Requested: %uMB, available: %uMB" , socket, requested, available);return -1 ; }
@@ -524,10 +520,9 @@ eal_dynmem_calc_num_pages_per_socket(/* if we didn't satisfy total memory requirements */ if (total_mem >0 ) { - requested = (unsigned int )(internal_conf->memory /0x100000 ); - available = requested - (unsigned int )(total_mem /0x100000 ); -EAL_LOG (ERR ,"Not enough memory available! " -"Requested: %uMB, available: %uMB" , + requested = internal_conf->memory /0x100000 ; + available = requested - (total_mem /0x100000 ); +EAL_LOG (ERR ,"Not enough memory available! Requested: %uMB, available: %uMB" , requested, available);return -1 ; }
lib/eal/include/rte_common.h +2 -4
@@ -59,8 +59,6 @@ extern "C" {#define RTE_CC_IS_GNU 0#if defined __clang__#define RTE_CC_CLANG -#elif defined __INTEL_COMPILER -#define RTE_CC_ICC #elif defined __GNUC__#define RTE_CC_GCC #undef RTE_CC_IS_GNU
@@ -160,7 +158,7 @@ typedef uint16_t unaligned_uint16_t;* Macros to cause the compiler to remember the state of the diagnostics as of * each push, and restore to that point at each pop. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_push _Pragma("GCC diagnostic push")#define __rte_diagnostic_pop _Pragma("GCC diagnostic pop")#else
@@ -172,7 +170,7 @@ typedef uint16_t unaligned_uint16_t;* Macro to disable compiler warnings about removing a type * qualifier from the target type. */ -#if !defined(__INTEL_COMPILER) && !defined(RTE_TOOLCHAIN_MSVC ) +#if !defined(RTE_TOOLCHAIN_MSVC )#define __rte_diagnostic_ignored_wcast_qual _Pragma("GCC diagnostic ignored \"-Wcast-qual\"")#else #define __rte_diagnostic_ignored_wcast_qual
lib/eal/x86/include/rte_rtm.h +1 -1
@@ -7,7 +7,7 @@#include <immintrin.h> -/* Official RTM intrinsics interface matching gcc/icc, but works +/* Official RTM intrinsics interface matching gcc, but works on older gcc compatible compilers and binutils. */ #include <rte_common.h>
lib/eal/x86/include/rte_vect.h +1 -14
@@ -17,7 +17,7 @@#include <rte_common.h> #include "generic/rte_vect.h" -#if defined(__ICC) || defined(_WIN64) +#if defined(_WIN64)#include <smmintrin.h> /* SSE4 */ #include <immintrin.h> #else
@@ -74,19 +74,6 @@ __extension__ ({ \ })#endif -/* -* Prior to version 12.1 icc doesn't support _mm_set_epi64x. -*/ -#if (defined(__ICC) && __ICC <1210 ) -#define _mm_set_epi64x (a, b) \ -__extension__ ({ \ - rte_xmm_t m; \ - m.u64[0] = b; \ - m.u64[1] = a; \ - (m.x); \ -}) -#endif /* (defined(__ICC) && __ICC < 1210) */ -#ifdef __AVX512F__#define RTE_X86_ZMM_SIZE (sizeof(__m512i))
lib/sched/rte_pie.c +0 -4
@@ -9,10 +9,6 @@#include "rte_sched_log.h" #include "rte_pie.h" -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -int rte_pie_rt_data_init (struct rte_pie *pie) {
lib/sched/rte_red.c +0 -4
@@ -7,10 +7,6 @@#include <rte_random.h> #include <rte_common.h> -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -static int rte_red_init_done =0 ;/**< Flag to indicate that global initialisation is done */ uint32_t rte_red_rand_val =0 ;/**< Random value cache */ uint32_t rte_red_rand_seed =0 ;/**< Seed for random number generation */
lib/sched/rte_sched.c +0 -5
@@ -22,11 +22,6 @@#include "rte_approx.h" - -#ifdef __INTEL_COMPILER -#pragma warning(disable:2259)/* conversion may lose significant bits */ -#endif -#ifndef RTE_SCHED_PORT_N_GRINDERS #define RTE_SCHED_PORT_N_GRINDERS 8#endif
lib/vhost/meson.build +0 -2
@@ -12,8 +12,6 @@ if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) cflags += '-DVHOST_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' -elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVHOST_ICC_UNROLL_PRAGMA' endif dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', cc.has_header('linux/userfaultfd.h'))
lib/vhost/vhost.h +0 -5
@@ -79,11 +79,6 @@ for (iter = val; iter < size; iter++)#endif -#ifdef VHOST_ICC_UNROLL_PRAGMA -#define vhost_for_each_try_unroll (iter, val, size) _Pragma("unroll (4)") \ - for (iter = val; iter < size; iter++) -#endif -#ifndef vhost_for_each_try_unroll#define vhost_for_each_try_unroll (iter, val, num) \ for (iter = val; iter < num; iter++)
--
2.43.0
Re: [PATCH v3] build: replace support for icc with icx
dts/framework/testbed_model/posix_session.py def get_compiler_version(self, compiler_name: str) -> str: · line 396
Quoted 13 lines · Bruce Richardson
dts/framework/testbed_model/posix_session.py +0
-2@@ -391,8 +391,6 @@ def get_compiler_version(self, compiler_name: str) -> str: ).stdout.split("\n")[0] case "msvc": return self.send_command("cl", SETTINGS.timeout).stdout - case "icc": - return self.send_command(f"{compiler_name} -V", SETTINGS.timeout).stdout case _: raise ValueError(f"Unknown compiler {compiler_name}")
I think we can drop icc = auto() in dts/framework/config/test_run.py too. Wdyt?
I can fix when applying.
Signature · 1 line
David Marchand
Re: [PATCH v3] build: replace support for icc with icx
Quoted 19 lines · David Marchand
dts/framework/testbed_model/posix_session.py def get_compiler_version(self, compiler_name: str) -> str: · line 396
Quoted 13 lines · Bruce Richardson
dts/framework/testbed_model/posix_session.py +0
-2@@ -391,8 +391,6 @@ def get_compiler_version(self, compiler_name: str) -> str: ).stdout.split("\n")[0] case "msvc": return self.send_command("cl", SETTINGS.timeout).stdout - case "icc": - return self.send_command(f"{compiler_name} -V", SETTINGS.timeout).stdout case _: raise ValueError(f"Unknown compiler {compiler_name}")I think we can drop icc =
auto()indts/framework/config/test_run.pytoo. Wdyt?
Quoted 2 lines
I can fix when applying.
+1
Please fix on apply.
Thanks.
David Marchand
AppliedRe: [PATCH v3] build: replace support for icc with icx
In reply to Bruce RichardsonQuoted 10 lines · Bruce Richardson
The "Intel C++ Compiler" (icc) has been replaced by the newer clang-based "Intel oneAPI DPC++/C++ Compiler" (icx) compiler. DPDK compilation has also not been tested recently with the icc compiler, so let's remove doc and code references to icc, and any special macros or build support that was added for it. Document instead that icx can be used to compile DPDK.
Signed-off-by Bruce Richardson <[email protected]>Acked-by Ian Stokes <[email protected]>
Quoted 9 lines
---
v3:
* separated out the icx build fixes, to revert to single-patch set. Due to potential conflicts depending on order of apply of patches, I will send these out separately to be applied to next-net-intel tree rather than main tree.
* more changes following feedback from David:
- removed cpu-endianness macros in testpmd
- removed unnecessary typecasts (and fixed line-break in err msg)
Dropped icc = auto() in dts/framework/config/test_run.py.
Applied, thanks Bruce.
Signature · 1 line
David Marchand