Skip to content

Add avx10.2nvl family of targets#3660

Open
aneshlya wants to merge 2 commits intoispc:mainfrom
aneshlya:avx10nvl
Open

Add avx10.2nvl family of targets#3660
aneshlya wants to merge 2 commits intoispc:mainfrom
aneshlya:avx10nvl

Conversation

@aneshlya
Copy link
Copy Markdown
Collaborator

@aneshlya aneshlya commented Dec 4, 2025

Description

Brief description of changes

Related Issue

  • Linked to relevant issue(s)

Checklist

  • Code has been formatted with clang-format (e.g., clang-format -i src/ispc.cpp)
  • Git history has been squashed to meaningful commits (one commit per logical change)
  • Compiler changes are covered by lit tests
  • Language/stdlib changes include new functional tests for runtime behavior
  • Documentation updated if needed

@dbabokin
Copy link
Copy Markdown
Collaborator

dbabokin commented Dec 4, 2025

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ispc.cpp Outdated
@aneshlya aneshlya force-pushed the avx10nvl branch 2 times, most recently from c161bdc to 400ace9 Compare December 5, 2025 00:09
@dbabokin
Copy link
Copy Markdown
Collaborator

dbabokin commented Dec 5, 2025

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

ispc/tools/check_isa.cpp

Lines 46 to 50 in 400ace9

"KNL",
"SKX",
"ICL",
"SPR",
"DMR",

P1 Badge Update check_isa strings for NVL/DMR enumerants

The ISA enum now assigns NVL_AVX10_2=11 and DMR_AVX10_2=12, but isa_strings still ends at "DMR" without an entry for NVL and only contains 12 elements. lGetSystemISA() indexes this array with isa_id from get_x86_isa(), so NVL will be reported as DMR and DMR (index 12) reads past the end of the array, which can yield garbage or crash the check_isa helper used by scripts/alloy to detect the host ISA.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/lit-tests/vnni-avx10.2nvl_llvm22_plus.ispc Outdated
@aneshlya aneshlya force-pushed the avx10nvl branch 3 times, most recently from 022bdb1 to f48b7d9 Compare February 6, 2026 21:45
@aneshlya aneshlya marked this pull request as ready for review February 6, 2026 22:15
@dbabokin
Copy link
Copy Markdown
Collaborator

dbabokin commented Feb 6, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f48b7d99a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ispc.cpp Outdated
- NVL inherits from ICL instead of DMR (NVL is DMR without AMX)
- Add conditional AMX capabilities for DMR targets only
- Rename target-fp16-*-common.ll to target-avx512fp16-*-common.ll
- Fix NVL detection in isa.h (remove prefetchi check)
- Fix ISAToString to use consistent underscore format (avx10_2nvl)
- Fix check_dispatch_llvm22_plus.ispc return values
- Fix check_isa.cpp to only show AMX status for AMX-capable ISAs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants