forked from ROCm/Tensile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DirectToLds for hgemm configurations (ROCm#1536)
Update checks for DirectToLds with hgemm and add test cases
- Loading branch information
1 parent
be83117
commit c7d39b6
Showing
2 changed files
with
139 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
TestParameters: | ||
marks: [skip-gfx900, skip-gfx906, skip-gfx1010, skip-gfx1011, skip-gfx1012, skip-gfx1030] # not supported by arch | ||
|
||
GlobalParameters: | ||
NumElementsToValidate: -1 | ||
BoundsCheck: True | ||
KernelTime: True | ||
# PrintSolutionRejectionReason: True | ||
|
||
BenchmarkProblems: | ||
######################################## | ||
# TN | ||
######################################## | ||
- # hgemm TN | ||
- # ProblemType | ||
OperationType: GEMM | ||
DataType: h | ||
ComputeDataType: s | ||
HighPrecisionAccumulate: True | ||
TransposeA: True | ||
TransposeB: False | ||
UseBeta: True | ||
Batched: True | ||
|
||
- # MFMA 16x16, VW = 4 | ||
InitialSolutionParameters: | ||
BenchmarkCommonParameters: | ||
- KernelLanguage: ["Assembly"] | ||
- EdgeType: ["ShiftPtr"] | ||
- AtomicAddC: [False] | ||
ForkParameters: | ||
- MatrixInstruction: | ||
- [16, 16, 16, 1, 1, 4,4, 2,2] | ||
- [16, 16, 16, 1, 1, 4,4, 1,4] | ||
- [16, 16, 16, 1, 1, 4,4, 4,1] | ||
- [16, 16, 4, 4, 1, 4,4, 2,2] | ||
- [16, 16, 4, 4, 2, 4,4, 2,2] | ||
- [16, 16, 4, 4, 4, 4,4, 2,2] | ||
# - [4, 4, 4, 16, 1, 4,4, 2,2] # Error | ||
- [4, 4, 4, 16, 2, 4,4, 2,2] | ||
- [4, 4, 4, 16, 4, 4,4, 2,2] | ||
- [4, 4, 4, 16, 8, 4,4, 2,2] | ||
# - [4, 4, 4, 16, 16, 4,4, 2,2] # Error | ||
- ThreadTile: | ||
- [ 8, 32 ] | ||
- WorkGroup: | ||
- [ 16, 16, 1 ] | ||
- SourceSwap: [True] | ||
- PrefetchGlobalRead: [1] | ||
- AssertFree0ElementMultiple: [2] | ||
# - AssertFree1ElementMultiple: [2] | ||
- WorkGroupMapping: [8] | ||
- PrefetchLocalRead: [1, 2, 3] | ||
- GlobalSplitU: [1] | ||
- DepthU: [16, 32, 64] | ||
- StoreVectorWidth: [4] | ||
- VectorWidth: [4] | ||
- GlobalReadVectorWidth: [4] # Error with GRVW < 4 | ||
- LocalReadVectorWidth: [4] | ||
- DirectToLds: [True] | ||
- DirectToVgprA: [False] # DirectToVgpr only for dgemm right now | ||
- DirectToVgprB: [False] # DirectToVgpr only for dgemm right now | ||
- WaveSeparateGlobalReadA: [0, 1] | ||
- WaveSeparateGlobalReadB: [0, 1] | ||
- NumLoadsCoalescedA: [1] # NLC=2 not working | ||
- NumLoadsCoalescedB: [1] # NLC=2 not working | ||
- ScheduleIterAlg: [3] | ||
- AssertSummationElementMultiple: [32] | ||
- StaggerU: [0] | ||
- NumElementsPerBatchStore: [0] # minimum 2 for SCIU | ||
- FractionalLoad: [0, 1, 2] | ||
- BufferLoad: [True] # DirectToLds requires BufferLoad | ||
- TransposeLDS: [1] | ||
BenchmarkForkParameters: | ||
JoinParameters: | ||
BenchmarkJoinParameters: | ||
BenchmarkFinalParameters: | ||
- ProblemSizes: | ||
- Exact: [1024, 1024, 1, 1024] | ||
|
||
- # MFMA 32x32, VW = 2 | ||
InitialSolutionParameters: | ||
BenchmarkCommonParameters: | ||
- KernelLanguage: ["Assembly"] | ||
- EdgeType: ["ShiftPtr"] | ||
- AtomicAddC: [False] | ||
ForkParameters: | ||
- MatrixInstruction: | ||
- [32, 32, 4, 2, 1, 2,2, 2,2] | ||
- [32, 32, 4, 2, 2, 2,2, 2,2] | ||
- [32, 32, 8, 1, 1, 2,2, 2,2] | ||
- [32, 32, 8, 1, 1, 2,2, 1,4] | ||
- [32, 32, 8, 1, 1, 2,2, 4,1] | ||
- ThreadTile: | ||
- [ 8, 32 ] | ||
- WorkGroup: | ||
- [ 16, 16, 1 ] | ||
- SourceSwap: [True] | ||
- PrefetchGlobalRead: [1] | ||
- AssertFree0ElementMultiple: [2] | ||
# - AssertFree1ElementMultiple: [2] | ||
- WorkGroupMapping: [8] | ||
- PrefetchLocalRead: [1, 2, 3] | ||
- GlobalSplitU: [1] | ||
- DepthU: [16, 32, 64] | ||
- StoreVectorWidth: [2] | ||
- VectorWidth: [2] | ||
- GlobalReadVectorWidth: [4] # Error with GRVW < 4 | ||
- LocalReadVectorWidth: [4] | ||
- DirectToLds: [True] | ||
- DirectToVgprA: [False] # DirectToVgpr only for dgemm right now | ||
- DirectToVgprB: [False] # DirectToVgpr only for dgemm right now | ||
- WaveSeparateGlobalReadA: [0, 1] | ||
- WaveSeparateGlobalReadB: [0, 1] | ||
- NumLoadsCoalescedA: [1] # NLC=2 not working | ||
- NumLoadsCoalescedB: [1] # NLC=2 not working | ||
- ScheduleIterAlg: [3] | ||
- AssertSummationElementMultiple: [32] | ||
- StaggerU: [0] | ||
- NumElementsPerBatchStore: [0] # minimum 2 for SCIU | ||
- FractionalLoad: [0, 1, 2] | ||
- BufferLoad: [True] # DirectToLds requires BufferLoad | ||
- TransposeLDS: [1] | ||
BenchmarkForkParameters: | ||
JoinParameters: | ||
BenchmarkJoinParameters: | ||
BenchmarkFinalParameters: | ||
- ProblemSizes: | ||
- Exact: [1024, 1024, 1, 1024] |