Skip to content

[Tensile] Fix gfx1032 missing in SupportedISA#1477

Merged
bstefanuk merged 3 commits into
developfrom
users/nicknick/tensile_gfx1032_isa_missing
Sep 25, 2025
Merged

[Tensile] Fix gfx1032 missing in SupportedISA#1477
bstefanuk merged 3 commits into
developfrom
users/nicknick/tensile_gfx1032_isa_missing

Conversation

@amd-nicknick
Copy link
Copy Markdown
Contributor

Motivation

gfx1032 is declared as supported in CMake and header files, but it is missing in Tensile Python AsmCaps and SupportedISA. This causes error when running TensileCreateLibrary with --verify-manifest --lazy-library-loading.

Link: ROCm/TheRock#1260

Technical Details

The master file generation logic ignores any ISA that is not listed in SupportedISA, but the manifest emits the entries anyways. This causes problem with --verify-manifest when checking if all files listed in manifest are correctly generated.

This issue only occurs with --lazy-library-loading, as without this flag, Tensile wouldn't generate master logic files.

Rest of the logic files are generated correctly for gfx1032.

Test Plan

Test generating gfx1032 Tensile library.

TensileCreateLibrary 
--merge-files 
--separate-architectures 
--lazy-library-loading 
--no-short-file-names 
--verbose=0 
--code-object-version=default 
--library-format=msgpack 
--architecture=gfx1030_gfx1032 
--no-enumerate rocblas/library/src/blas3/Tensile/Logic/asm_full build/Tensile HIP --verify-manifest"

Test Result

Command completes successfully with all library files emitted correctly.

Submission Checklist

@amd-nicknick amd-nicknick marked this pull request as ready for review September 8, 2025 06:58
@amd-nicknick amd-nicknick requested a review from a team as a code owner September 8, 2025 06:58
bstefanuk
bstefanuk previously approved these changes Sep 15, 2025
@amd-nicknick amd-nicknick force-pushed the users/nicknick/tensile_gfx1032_isa_missing branch from 4ae69b0 to 09fe264 Compare September 16, 2025 14:01
@amd-nicknick amd-nicknick self-assigned this Sep 16, 2025
@bstefanuk bstefanuk self-requested a review September 18, 2025 16:53
Copy link
Copy Markdown
Contributor

@bstefanuk bstefanuk left a comment

Choose a reason for hiding this comment

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

Looking at this closer, the issue I believe is that we've added a new gfx target, but haven't properly skipped tests that are intended for other devices. Please see #697 and note that skip-gfx1032 should be added to the relevant tests.

After these are added, I recommend running the tests locally before pushing to ensure everything passes. Though, it is curious that tests only failed for gfx90a and gfx908.

@amd-nicknick amd-nicknick force-pushed the users/nicknick/tensile_gfx1032_isa_missing branch from 21e1ded to a6ac62f Compare September 22, 2025 07:09
gfx1032 is declared as supported in CMake and header files, but it is
missing in Tensile Python AsmCaps and SupportedISA. This causes error
when running TensileCreateLibrary with --verify-manifest --lazy-library-loading.

Link: ROCm/TheRock#1260
@amd-nicknick amd-nicknick force-pushed the users/nicknick/tensile_gfx1032_isa_missing branch from a6ac62f to 7d65b11 Compare September 24, 2025 07:16
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

❗ There is a different number of reports uploaded between BASE (ddc89e7) and HEAD (cba2f75). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ddc89e7) HEAD (cba2f75)
rocSPARSE 1 0
Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1477       +/-   ##
============================================
- Coverage    81.75%   67.00%   -14.75%     
============================================
  Files          378      360       -18     
  Lines        31130    50468    +19338     
  Branches         0     5683     +5683     
============================================
+ Hits         25450    33816     +8366     
- Misses        5680    13098     +7418     
- Partials         0     3554     +3554     
Flag Coverage Δ
rocBLAS 67.00% <ø> (?)
rocSPARSE ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 738 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bstefanuk
Copy link
Copy Markdown
Contributor

CI issues are known issues with Tensile @amd-nicknick will continue to resolve these test errors.

@bstefanuk bstefanuk merged commit 52eb6c1 into develop Sep 25, 2025
12 of 16 checks passed
@bstefanuk bstefanuk deleted the users/nicknick/tensile_gfx1032_isa_missing branch September 25, 2025 16:21
assistant-librarian Bot pushed a commit to ROCm/Tensile that referenced this pull request Sep 25, 2025
[Tensile] Fix gfx1032 missing in SupportedISA

## Motivation

gfx1032 is declared as supported in CMake and header files, but it is
missing in Tensile Python AsmCaps and SupportedISA. This causes error
when running TensileCreateLibrary with --verify-manifest
--lazy-library-loading.

Link: ROCm/TheRock#1260

## Technical Details

The master file generation logic ignores any ISA that is not listed in
SupportedISA, but the manifest emits the entries anyways. This causes
problem with --verify-manifest when checking if all files listed in
manifest are correctly generated.

This issue only occurs with --lazy-library-loading, as without this
flag, Tensile wouldn't generate master logic files.

Rest of the logic files are generated correctly for gfx1032.

## Test Plan

Test generating gfx1032 Tensile library.

```
TensileCreateLibrary
--merge-files
--separate-architectures
--lazy-library-loading
--no-short-file-names
--verbose=0
--code-object-version=default
--library-format=msgpack
--architecture=gfx1030_gfx1032
--no-enumerate rocblas/library/src/blas3/Tensile/Logic/asm_full build/Tensile HIP --verify-manifest"
```

## Test Result

Command completes successfully with all library files emitted correctly.

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
@rocm-devops
Copy link
Copy Markdown

Github action triggered OSDB jenkins job: http://rocm-ci.amd.com/job/compute-rocm-dkms-mathlibs-osdb/377

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.

4 participants