Skip to content

Add AVX-512 enablement layer - #5307

Open
amd-nithyavs wants to merge 2 commits into
AOMediaCodec:av2-encfrom
amd:avx512_enablement
Open

Add AVX-512 enablement layer#5307
amd-nithyavs wants to merge 2 commits into
AOMediaCodec:av2-encfrom
amd:avx512_enablement

Conversation

@amd-nithyavs

Copy link
Copy Markdown

Adds the build-system, RTCD, and runtime-dispatch plumbing to host AVX-512 kernels in libavm. Infrastructure only — no kernels are added and nothing is specialized to avx512, so this is a runtime no-op till follow-up kernel PRs land.

Includes: runtime detection in x86.h (XGETBV opmask/ZMM state + CPUID F/DQ/BW/VL), RTCD avx512 arch (x86_64 only), CMake object-library hooks and MSVC /arch:AVX512 mapping, HAVE_AVX512/ENABLE_AVX512 (default ON, inherits the disable cascade), and a gtest CPU gate.

Reversible via -DENABLE_AVX512=OFF.

Adds AVX512 enablement layer - runtime CPU detection, RTCD arch
registration, cmake flavor/flag plumbing, empty per-target
object-library hooks - and a whole program -march knob.

Signed-off-by: Nithya V S <Nithya.VS@amd.com>
@yunqingwang1
yunqingwang1 self-requested a review August 24, 2026 16:39

@yunqingwang1 yunqingwang1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks.

@yunqingwang1
yunqingwang1 enabled auto-merge (rebase) August 24, 2026 16:55
@yunqingwang1
yunqingwang1 disabled auto-merge August 24, 2026 17:05
Fixes style check errors in the cmake files.
@urvangjoshi

Copy link
Copy Markdown
Contributor

@amd-nithyavs : I'm not seeing an option to rebase on my own from the UI. Have you disabled this option? Should be something like "Allow edit by maintainers"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants