From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: Zaid M <zmzshathry@gmail.com>
Cc: dev@dpdk.org
Subject: Re: Cross-Compiling x86_64 but for different CPU
Date: Mon, 6 Jan 2025 02:56:21 +0300 [thread overview]
Message-ID: <20250106025621.1d175857@sovereign> (raw)
In-Reply-To: <CAOYSQUKbcnQr2w1-2YB85vUps7Wy_g-mi_DtVjQeG+fO6La2Ow@mail.gmail.com>
2024-12-31 11:45 (UTC+0300), Zaid M:
> I have an Intel CPU but I want to compile an optimized binary for AMD
> (x86_64) which may have a different CPU instruction set (e.g. avx512 or
> avx512bw) and I don't want to use "-Dplatform=generic". How can I achieve
> that?
When you use `-Dplatform=generic`, parts of DPDK vectorized for e.g. AVX512
are still built, and DPDK will employ them if run on a CPU that supports them.
Usually this is enough because fast-path routines have vectorized versions
and the performance of other code is not critical, but not always.
If you know that the host machine (AMD) has e.g. Zen3 instruction set,
you can use `-Dcpu_instruction_set=zen3` to optimize the rest of DPDK code.
This will make the build non-portable to machines without Zen3 though.
P.S. Questions about DPDK usage belong to users@dpdk.org.
prev parent reply other threads:[~2025-01-05 23:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-31 8:45 Zaid M
2025-01-05 23:56 ` Dmitry Kozlyuk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250106025621.1d175857@sovereign \
--to=dmitry.kozliuk@gmail.com \
--cc=dev@dpdk.org \
--cc=zmzshathry@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).